window.__require = function e(t, o, n) {
    function a(r, c) {
        if (!o[r]) {
            if (!t[r]) {
                var s = r.split("/");
                if (s = s[s.length - 1], !t[s]) {
                    var l = "function" == typeof __require && __require;
                    if (!c && l) return l(s, !0);
                    if (i) return i(s, !0);
                    throw new Error("Cannot find module '" + r + "'")
                }
            }
            var h = o[r] = {
                exports: {}
            };
            t[r][0].call(h.exports,
            function(e) {
                return a(t[r][1][e] || e)
            },
            h, h.exports, e, t, o, n)
        }
        return o[r].exports
    }
    for (var i = "function" == typeof __require && __require,
    r = 0; r < n.length; r++) a(n[r]);
    return a
} ({
    AudioManager: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "47071Fm6/FNmawoBS+X/Ryj", "AudioManager"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./DataControl"),
        a = cc._decorator,
        i = a.ccclass,
        r = (a.property,
        function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            var o;
            return __extends(t, e),
            o = t,
            t.play = function(e) {
                var t = cc.audioEngine.play(this.musicContainer[e], !0, .5);
                this.idContainer[e] = t
            },
            t.playEffect = function(e) {
                if (n.DataControl.SFXON) {
                    var t = cc.audioEngine.playEffect(this.musicContainer[e], !1);
                    this.idContainer[e] = t
                }
            },
            t.reLoadRes = function(e, t) {
                var n = [];
                n.push(this.balltopaotai1),
                n.push(this.balltopaotai2),
                n.push(this.blow1),
                n.push(this.blow2),
                n.push(this.blow3),
                n.push(this.btnclick),
                n.push(this.getcoin1),
                n.push(this.getcoin2),
                n.push(this.getcoin3),
                n.push(this.getmorecoin),
                n.push(this.levelup),
                n.push(this.shot1),
                n.push(this.shot2),
                n.push(this.shot3),
                n.push(this.shotball1),
                n.push(this.shotball2),
                n.push(this.shotorg),
                cc.loader.loadResArray(n, cc.AudioClip,
                function(e, t, o) {},
                function(a, i) {
                    if (a) return cc.error("\u3010\u97f3\u9891\u3011\u8d44\u6e90\u52a0\u8f7d\u9519\u8bef " + a),
                    void e.call(t, 0);
                    var r = i;
                    console.log("dafds is " + r.length);
                    for (var c = i.length,
                    s = 0; s < c; s++) o.musicContainer[n[s]] = i[s];
                    t && e.call(t, 0)
                })
            },
            t.balltopaotai1 = "sfx/balltopaotai1",
            t.balltopaotai2 = "sfx/balltopaotai2",
            t.blow1 = "sfx/blow1",
            t.blow2 = "sfx/blow2",
            t.blow3 = "sfx/blow3",
            t.btnclick = "sfx/btnclick",
            t.getcoin2 = "sfx/getcoin2",
            t.getcoin3 = "sfx/getcoin3",
            t.getcoin1 = "sfx/getcoin1",
            t.getmorecoin = "sfx/getmorecoin",
            t.levelup = "sfx/levelup",
            t.shot1 = "sfx/shot1",
            t.shot2 = "sfx/shot2",
            t.shot3 = "sfx/shot3",
            t.shotball1 = "sfx/shotball1",
            t.shotball2 = "sfx/shotball2",
            t.shotorg = "sfx/shotorg",
            t.musicContainer = {},
            t.idContainer = {},
            t = o = __decorate([i], t)
        } (cc.Component));
        o.AudioManager = r,
        cc._RF.pop()
    },
    {
        "./DataControl": "DataControl"
    }],
    Ball: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "afee9OXGeBGqqnhikDQUzR5", "Ball"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./Bullet"),
        a = e("../GameScene"),
        i = e("../DataControl"),
        r = e("../AudioManager"),
        c = cc._decorator,
        s = c.ccclass,
        l = c.property,
        h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.labellife = null,
                t.myType = 0,
                t.myLife = 0,
                t.name = "ball",
                t.myOrgLife = 0,
                t.myColor = 0,
                t.skinType = 0,
                t.defaultBeginHeight = 800,
                t.beginHeight = 0,
                t.beginWidth = 0,
                t.defaultSpeedX = 30,
                t.defaultSpeedY = 30,
                t.speedX = 0,
                t.speedY = 0,
                t.direction = 0,
                t.beginLeftOrRight = 0,
                t.rigidbody = null,
                t.gravity = -2,
                t.gravityup = -.7,
                t.scaler0 = .375,
                t.scaler1 = .47,
                t.scaler2 = .65,
                t.scaler3 = 1,
                t.scaler4 = .47,
                t
            }
            return __extends(t, e),
            t.prototype.onLoad = function() {
                this.beginHeight = this.defaultBeginHeight
            },
            t.prototype.onEnable = function() {},
            t.prototype.start = function() {},
            t.prototype.onCollisionEnter = function(e, t) {
                if (1 == e.tag) {
                    var o = e.getComponent(n.Bullet);
                    a.GameScene.getInstance().createParticle(o.node.position),
                    this.checkLife(o.damage)
                }
            },
            t.prototype.onBeginContact = function(e, t, o) {
                if (3 == o.tag) {
                    var n = e.getWorldManifold().points,
                    i = this.node.parent.convertToNodeSpaceAR(n[0]);
                    this.getComponent(cc.RigidBody).linearVelocity.x < 0 ? this.getComponent(cc.RigidBody).linearVelocity.x = -300 : this.getComponent(cc.RigidBody).linearVelocity.x = 300,
                    this.getComponent(cc.RigidBody).linearVelocity.y = 300,
                    r.AudioManager.playEffect(r.AudioManager.balltopaotai2),
                    a.GameScene.getInstance().createSmoke(i),
                    a.GameScene.getInstance().shakeBg1()
                }
            },
            t.prototype.setInfo = function(e, t, o, n) {
                this.myOrgLife = Math.floor(t),
                this.myLife = this.myOrgLife,
                this.myType = e,
                this.skinType = n,
                this.myColor = o;
                var i = 1;
                switch (this.myType) {
                case 0:
                    i = this.scaler0;
                    break;
                case 1:
                    i = this.scaler1;
                    break;
                case 2:
                    i = this.scaler2;
                    break;
                case 3:
                    i = this.scaler3;
                    break;
                case 4:
                    i = this.scaler4;
                    break;
                default:
                    i = this.scaler3
                }
                this.node.setScale(i),
                4 == this.myType ? this.getComponent(cc.Sprite).spriteFrame = a.GameScene.getInstance().gameAtlas.getSpriteFrame("ball_lipin") : this.getComponent(cc.Sprite).spriteFrame = a.GameScene.getInstance().gameAtlas.getSpriteFrame("ball" + this.skinType + "_" + this.myColor),
                this.setLifeLabel()
            },
            t.prototype.beginToMove = function() {
                this.setLifeLabel(),
                this.createStartPosition(),
                0 == this.beginLeftOrRight ? this.node.runAction(cc.sequence(cc.moveBy(1, cc.v2(100 + this.node.getBoundingBox().width, 0)), cc.callFunc(this.freeFall2, this))) : this.node.runAction(cc.sequence(cc.moveBy(1, cc.v2( - (100 + this.node.getBoundingBox().width), 0)), cc.callFunc(this.freeFall2, this)))
            },
            t.prototype.beginToMoveFromSplit = function(e, t) {
                this.setLifeLabel(),
                this.direction = e,
                this.node.setPosition(t),
                this.freeFall3()
            },
            t.prototype.beginToCheckCollid = function() {},
            t.prototype.update2222222 = function(e) {
                var t = this.node.getBoundingBox().width / 2;
                this.node.setPosition(cc.v2(this.node.x + this.speedX, this.node.y + this.speedY)),
                0 == this.direction ? (this.speedY += e * this.gravityup, this.speedY <= 0 ? (this.direction = 3, this.speedY = -3) : this.node.x + t >= 320 && (this.direction = 1, this.speedX = -this.speedX)) : 1 == this.direction ? (this.speedY += e * this.gravityup, this.speedY <= 0 ? (this.direction = 2, this.speedY = -3) : this.node.x - t <= -320 && (this.direction = 0, this.speedX = -this.speedX)) : 2 == this.direction ? (this.speedY += e * this.gravity, this.node.y - t <= -400 ? (this.direction = 1, this.node.stopAllActions(), this.freeFall(), r.AudioManager.playEffect(r.AudioManager.balltopaotai2), a.GameScene.getInstance().createSmoke(cc.v2(this.node.x, this.node.y)), a.GameScene.getInstance().shakeBg1()) : this.node.x - t <= -320 && (this.direction = 3, this.speedX = -this.speedX)) : 3 == this.direction && (this.speedY += e * this.gravity, this.node.y - t <= -400 ? (this.direction = 0, this.node.stopAllActions(), this.freeFall(), r.AudioManager.playEffect(r.AudioManager.balltopaotai2), a.GameScene.getInstance().createSmoke(cc.v2(this.node.x, this.node.y)), a.GameScene.getInstance().shakeBg1()) : this.node.x + t >= 320 && (this.direction = 2, this.speedX = -this.speedX))
            },
            t.prototype.freeFall2 = function() {
                var e = this.addComponent(cc.RigidBody);
                e.type = cc.RigidBodyType.Dynamic,
                e.gravityScale = .7,
                0 == this.beginLeftOrRight ? e.linearVelocity = cc.v2(300, -200) : e.linearVelocity = cc.v2( - 300, -200),
                e.enabledContactListener = !0;
                var t = this.addComponent(cc.PhysicsCircleCollider);
                t.friction = 0,
                t.restitution = 1,
                t.radius = 119 * this.node.scale,
                2 == this.direction ? this.node.runAction(cc.repeatForever(cc.rotateBy(2, 360))) : this.node.runAction(cc.repeatForever(cc.rotateBy(2, -360)))
            },
            t.prototype.freeFall3 = function() {
                var e = this.addComponent(cc.RigidBody);
                e.type = cc.RigidBodyType.Dynamic,
                e.gravityScale = .7,
                0 == this.direction ? e.linearVelocity = cc.v2(i.DataControl.getRandomInt(200, 250), i.DataControl.getRandomInt(200, 250)) : e.linearVelocity = cc.v2(i.DataControl.getRandomInt( - 200, -250), i.DataControl.getRandomInt(200, 250)),
                e.enabledContactListener = !0;
                var t = this.addComponent(cc.PhysicsCircleCollider);
                t.friction = 0,
                t.restitution = 1,
                t.radius = 119 * this.node.scale,
                0 == this.direction ? this.node.runAction(cc.repeatForever(cc.rotateBy(2, 360))) : this.node.runAction(cc.repeatForever(cc.rotateBy(2, -360)))
            },
            t.prototype.freeFall = function() {
                switch (this.direction) {
                case 0:
                    this.speedX = this.defaultSpeedX,
                    this.speedY = this.defaultSpeedY;
                    break;
                case 1:
                    this.speedX = -this.defaultSpeedX,
                    this.speedY = this.defaultSpeedY;
                    break;
                case 2:
                    this.speedX = -this.defaultSpeedX,
                    this.speedY = -this.defaultSpeedY;
                    break;
                case 3:
                    this.speedX = this.defaultSpeedX,
                    this.speedY = -this.defaultSpeedY
                }
                this.speedX <= 0 ? this.node.runAction(cc.repeatForever(cc.rotateBy(2, 360))) : this.node.runAction(cc.repeatForever(cc.rotateBy(2, -360))),
                this.node.runAction(cc.repeatForever(cc.moveBy(.1, cc.v2(this.speedX, this.speedY))))
            },
            t.prototype.createStartPosition = function() {
                var e = new cc.Vec2;
                e.y = this.beginHeight,
                this.beginLeftOrRight = i.DataControl.getRandomInt(0, 1),
                0 == this.beginLeftOrRight ? (e.x = 0 - this.node.getBoundingBox().width / 2, this.direction = 3) : 1 == this.beginLeftOrRight ? (e.x = 640 + this.node.getBoundingBox().width / 2, this.direction = 2) : console.log("\u968f\u673a\u6570\u9519\u8bef");
                var t = this.node.parent.convertToNodeSpaceAR(e);
                this.node.position = t
            },
            t.prototype.getBeginHeight = function() {
                return this.beginHeight
            },
            t.prototype.setBeginHeight = function(e) {
                this.beginHeight = e
            },
            t.prototype.setBeginWidth = function(e) {
                this.beginWidth = e
            },
            t.prototype.checkCollid = function(e) {},
            t.prototype.split = function() {
                r.AudioManager.playEffect(r.AudioManager.blow2),
                a.GameScene.getInstance().currentBallBreak++,
                a.GameScene.getInstance().deleteElementFormBallPool(this.node),
                a.GameScene.getInstance().createBallsWhenSplit(this.myType, this.node.position, this.myOrgLife),
                a.GameScene.getInstance().createCoin(this.node.position, this.myOrgLife),
                a.GameScene.getInstance().createBlow(this.myType, this.node.position)
            },
            t.prototype.checkLife = function(e) {
                var t = 0;
                t = this.myLife < e ? this.myLife: e,
                this.myLife -= e,
                this.myLife < 0 && (this.myLife = 0),
                this.setLifeLabel(),
                this.myLife <= 0 && (t += this.myOrgLife, this.split(), this.node.destroy()),
                a.GameScene.getInstance().addPoints(t)
            },
            t.prototype.setLifeLabel = function() {
                4 == this.myType ? this.labellife.string = "": this.labellife.string = Math.ceil(this.myLife) + ""
            },
            __decorate([l(cc.Label)], t.prototype, "labellife", void 0),
            __decorate([l()], t.prototype, "defaultBeginHeight", void 0),
            __decorate([l(cc.Node)], t.prototype, "rigidbody", void 0),
            t = __decorate([s], t)
        } (cc.Component);
        o.Ball = h,
        cc._RF.pop()
    },
    {
        "../AudioManager": "AudioManager",
        "../DataControl": "DataControl",
        "../GameScene": "GameScene",
        "./Bullet": "Bullet"
    }],
    BeginLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "04b70yhJkZHMbqDLb8nD12t", "BeginLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./GameScene"),
        a = e("./DataControl"),
        i = e("./AudioManager"),
        r = cc._decorator,
        c = r.ccclass,
        s = r.property,
        l = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.fingure = null,
                t.btnSpeed = null,
                t.btnPower = null,
                t.btnOffline = null,
                t.freeWatch0 = null,
                t.freeWatch1 = null,
                t.freeWatch2 = null,
                t.watchFreeType = -1,
                t.labelCoin = null,
                t.dollar = null,
                t.btnLip = null,
                t.btnSfx = null,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.onEnable = function() {
                console.log("beginlayout onEnable"),
                this.fingure.y = -23,
                this.refreshUpgradeBtn(),
                this.labelCoin.string = n.GameScene.getInstance().mycoins + "",
                this.schedule(this.mesuareLabel, .1, 1, 0),
                a.DataControl.H5BANBEN || (console.log("beginlayout onEnable btnLip"), this.btnLip.node.active = !0),
                a.DataControl.SFXON ? this.btnSfx.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().gameAtlas.getSpriteFrame("sfxon") : this.btnSfx.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().gameAtlas.getSpriteFrame("sfxoff")
            },
            t.prototype.mesuareLabel = function(e) {
                this.dollar.x = this.labelCoin.node.x - this.labelCoin.node.width / 2 - 10
            },
            t.prototype.setTopLabel = function() {
                this.labelCoin.string = Math.ceil(n.GameScene.getInstance().mycoins) + "",
                this.labelCoin.node.runAction(cc.sequence(cc.scaleTo(.2, 1.2), cc.scaleTo(.2, 1), cc.callFunc(this.mesuareLabel, this)))
            },
            t.prototype.onLoad = function() {
                console.log("beginlayout onLoad"),
                o.myInstance = this
            },
            t.prototype.start = function() {
                console.log("beginlayout start"),
                this.fingure.runAction(cc.repeatForever(cc.sequence(cc.moveBy(2, cc.v2(320, 0)), cc.moveBy(2, cc.v2( - 320, 0)))))
            },
            t.prototype.onDisable = function() {},
            t.prototype.touchListener = function(e) {},
            t.prototype.refreshUpgradeBtn = function() {
                this.watchFreeType = -1,
                this.freeWatch0.active = !1,
                this.freeWatch1.active = !1,
                this.freeWatch2.active = !1;
                var e = a.DataControl.ItemLevels[n.GameScene.getInstance().mortarSpeedLevel].needmoney;
                n.GameScene.getInstance().mortarSpeedLevel >= 99 || e > n.GameScene.getInstance().mycoins ? (this.btnSpeed.interactable = !1, this.btnSpeed.enabled = !1) : (this.btnSpeed.interactable = !0, this.btnSpeed.enabled = !0),
                this.btnSpeed.node.getChildByName("Label").getComponent(cc.Label).string = a.DataControl.ItemLevels[n.GameScene.getInstance().mortarSpeedLevel].speed + "",
                this.btnSpeed.node.getChildByName("Label2").getComponent(cc.Label).string = Math.ceil(e) + "",
                e = a.DataControl.ItemLevels[n.GameScene.getInstance().bulletDemageLevel].needmoney,
                n.GameScene.getInstance().bulletDemageLevel >= 99 || e > n.GameScene.getInstance().mycoins ? (this.btnPower.interactable = !1, this.btnPower.enabled = !1) : (this.btnPower.interactable = !0, this.btnPower.enabled = !0),
                this.btnPower.node.getChildByName("Label").getComponent(cc.Label).string = a.DataControl.ItemLevels[n.GameScene.getInstance().bulletDemageLevel].damage + "",
                this.btnPower.node.getChildByName("Label2").getComponent(cc.Label).string = Math.ceil(e) + "",
                e = a.DataControl.ItemLevels[n.GameScene.getInstance().offlineLevel].needmoney,
                n.GameScene.getInstance().offlineLevel >= 99 || e > n.GameScene.getInstance().mycoins ? (this.btnOffline.interactable = !1, this.btnOffline.enabled = !1) : (this.btnOffline.interactable = !0, this.btnOffline.enabled = !0),
                n.GameScene.getInstance().offlineLevel + 1 < 45 ? this.btnOffline.node.getChildByName("Label").getComponent(cc.Label).string = Math.floor(a.DataControl.ItemLevels[n.GameScene.getInstance().offlineLevel].offline1) + "": this.btnOffline.node.getChildByName("Label").getComponent(cc.Label).string = Math.floor(a.DataControl.ItemLevels[n.GameScene.getInstance().offlineLevel].offline2) + "",
                this.btnOffline.node.getChildByName("Label2").getComponent(cc.Label).string = Math.ceil(e) + "";
                var t = a.DataControl.getData("LASTUPTYPE");
                t && "" != t || (t = "0");
                var o = parseInt(a.DataControl.getData("LASTUPLEVEL"));
                if (isNaN(o) && (o = 0), console.log("LASTUPLEVEL is " + o), !a.DataControl.H5BANBEN) {
                    var i = [];
                    if ((n.GameScene.getInstance().mortarSpeedLevel + 1) % 4 == 0 && n.GameScene.getInstance().mortarSpeedLevel + 1 > o && a.DataControl.getAdReady(a.DataControl.sceneid1) && i.push(0), (n.GameScene.getInstance().bulletDemageLevel + 1) % 4 == 0 && n.GameScene.getInstance().bulletDemageLevel + 1 > o && a.DataControl.getAdReady(a.DataControl.sceneid1) && i.push(1), (n.GameScene.getInstance().offlineLevel + 1) % 4 == 0 && n.GameScene.getInstance().offlineLevel + 1 > o && a.DataControl.getAdReady(a.DataControl.sceneid1) && i.push(2), 1 == i.length) 0 == i[0] ? (this.btnSpeed.interactable = !0, this.btnSpeed.enabled = !0, this.watchFreeType = 0, this.freeWatch0.active = !0) : 1 == i[0] ? (this.btnPower.interactable = !0, this.btnPower.enabled = !0, this.watchFreeType = 1, this.freeWatch1.active = !0) : 2 == i[0] && (this.btnOffline.interactable = !0, this.btnOffline.enabled = !0, this.watchFreeType = 2, this.freeWatch2.active = !0);
                    else if (i.length > 1) for (var r = 0; r < i.length; r++) {
                        var c = i[r];
                        if (c == parseInt(t)) {
                            0 == c ? (this.btnSpeed.interactable = !0, this.btnSpeed.enabled = !0, this.watchFreeType = 0, this.freeWatch0.active = !0) : 1 == c ? (this.btnPower.interactable = !0, this.btnPower.enabled = !0, this.watchFreeType = 1, this.freeWatch1.active = !0) : 2 == c && (this.btnOffline.interactable = !0, this.btnOffline.enabled = !0, this.watchFreeType = 2, this.freeWatch2.active = !0);
                            break
                        }
                    }
                }
            },
            t.prototype.upGradeClick = function(e, t) {
                if (console.log("touch " + t), "0" == t) if (0 == this.watchFreeType) i.AudioManager.playEffect(i.AudioManager.levelup),
                a.DataControl.showAd(a.DataControl.sceneid1, 3);
                else {
                    var o = a.DataControl.ItemLevels[n.GameScene.getInstance().mortarSpeedLevel].needmoney*-1;
                    if (n.GameScene.getInstance().mycoins >= o) {
                        i.AudioManager.playEffect(i.AudioManager.levelup),
                        n.GameScene.getInstance().mycoins += o,
                        n.GameScene.getInstance().mortarSpeedLevel++,
                        a.DataControl.storeData("SPEED", n.GameScene.getInstance().mortarSpeedLevel),
                        a.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins),
                        a.DataControl.storeData("LASTUPTYPE", "0");
                        var r = parseInt(a.DataControl.getData("LASTUPLEVEL"));
                        isNaN(r) && (r = 0),
                        n.GameScene.getInstance().mortarSpeedLevel > r && a.DataControl.storeData("LASTUPLEVEL", n.GameScene.getInstance().mortarSpeedLevel),
                        this.refreshUpgradeBtn(),
                        this.labelCoin.string = Math.ceil(n.GameScene.getInstance().mycoins) + "",
                        a.DataControl.checkUnloc(7, 1)
                    }
                } else if ("1" == t) if (1 == this.watchFreeType) i.AudioManager.playEffect(i.AudioManager.levelup),
                a.DataControl.showAd(a.DataControl.sceneid1, 3);
                else {
                    o = a.DataControl.ItemLevels[n.GameScene.getInstance().bulletDemageLevel].needmoney;
                    if (n.GameScene.getInstance().mycoins >= o) {
                        i.AudioManager.playEffect(i.AudioManager.levelup),
                        n.GameScene.getInstance().mycoins += o,
                        n.GameScene.getInstance().bulletDemageLevel++,
                        a.DataControl.storeData("DEMAGE", n.GameScene.getInstance().bulletDemageLevel),
                        a.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins),
                        a.DataControl.storeData("LASTUPTYPE", "1");
                        r = parseInt(a.DataControl.getData("LASTUPLEVEL"));
                        isNaN(r) && (r = 0),
                        n.GameScene.getInstance().bulletDemageLevel > r && a.DataControl.storeData("LASTUPLEVEL", n.GameScene.getInstance().bulletDemageLevel),
                        this.refreshUpgradeBtn(),
                        this.labelCoin.string = Math.ceil(n.GameScene.getInstance().mycoins) + "",
                        a.DataControl.checkUnloc(7, 1)
                    }
                } else if ("2" == t) if (2 == this.watchFreeType) i.AudioManager.playEffect(i.AudioManager.levelup),
                a.DataControl.showAd(a.DataControl.sceneid1, 3);
                else {
                    o = a.DataControl.ItemLevels[n.GameScene.getInstance().offlineLevel].needmoney;
                    if (n.GameScene.getInstance().mycoins >= o) {
                        i.AudioManager.playEffect(i.AudioManager.levelup),
                        n.GameScene.getInstance().mycoins += o,
                        n.GameScene.getInstance().offlineLevel++,
                        a.DataControl.storeData("OFFLINE", n.GameScene.getInstance().offlineLevel),
                        a.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins),
                        a.DataControl.storeData("LASTUPTYPE", "2");
                        r = parseInt(a.DataControl.getData("LASTUPLEVEL"));
                        isNaN(r) && (r = 0),
                        n.GameScene.getInstance().offlineLevel > r && a.DataControl.storeData("LASTUPLEVEL", n.GameScene.getInstance().offlineLevel),
                        this.refreshUpgradeBtn(),
                        this.labelCoin.string = Math.ceil(n.GameScene.getInstance().mycoins) + "",
                        a.DataControl.checkUnloc(7, 1)
                    }
                }
            },
            t.prototype.cjClick = function(e) {
                i.AudioManager.playEffect(i.AudioManager.btnclick),
                n.GameScene.getInstance().showSceneLayout()
            },
            t.prototype.lipClick = function(e) {
                i.AudioManager.playEffect(i.AudioManager.btnclick),
                n.GameScene.getInstance().showLipinLayout()
            },
            t.prototype.watchVideoBack = function(e) {
                console.log("cancel watch video beginlayout"),
                e && (a.DataControl.H5BANBEN || (0 == this.watchFreeType ? (i.AudioManager.playEffect(i.AudioManager.levelup), n.GameScene.getInstance().mortarSpeedLevel++, a.DataControl.storeData("SPEED", n.GameScene.getInstance().mortarSpeedLevel), a.DataControl.storeData("LASTUPTYPE", "0"), a.DataControl.storeData("LASTUPLEVEL", n.GameScene.getInstance().mortarSpeedLevel), this.refreshUpgradeBtn(), a.DataControl.checkUnloc(7, 1)) : 1 == this.watchFreeType ? (n.GameScene.getInstance().bulletDemageLevel++, a.DataControl.storeData("DEMAGE", n.GameScene.getInstance().bulletDemageLevel), a.DataControl.storeData("LASTUPTYPE", "1"), a.DataControl.storeData("LASTUPLEVEL", n.GameScene.getInstance().bulletDemageLevel), this.refreshUpgradeBtn(), a.DataControl.checkUnloc(7, 1)) : 2 == this.watchFreeType && (n.GameScene.getInstance().offlineLevel++, a.DataControl.storeData("OFFLINE", n.GameScene.getInstance().offlineLevel), a.DataControl.storeData("LASTUPTYPE", "2"), a.DataControl.storeData("LASTUPLEVEL", n.GameScene.getInstance().offlineLevel), this.refreshUpgradeBtn(), a.DataControl.checkUnloc(7, 1))))
            },
            t.prototype.sfxClick = function(e) {
                i.AudioManager.playEffect(i.AudioManager.btnclick),
                a.DataControl.SFXON ? (a.DataControl.SFXON = !1, a.DataControl.storeData("SFX", "0"), this.btnSfx.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().gameAtlas.getSpriteFrame("sfxoff")) : (a.DataControl.SFXON = !0, a.DataControl.storeData("SFX", "1"), this.btnSfx.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().gameAtlas.getSpriteFrame("sfxon"))
            },
            t.myInstance = null,
            __decorate([s(cc.Node)], t.prototype, "fingure", void 0),
            __decorate([s(cc.Button)], t.prototype, "btnSpeed", void 0),
            __decorate([s(cc.Button)], t.prototype, "btnPower", void 0),
            __decorate([s(cc.Button)], t.prototype, "btnOffline", void 0),
            __decorate([s(cc.Node)], t.prototype, "freeWatch0", void 0),
            __decorate([s(cc.Node)], t.prototype, "freeWatch1", void 0),
            __decorate([s(cc.Node)], t.prototype, "freeWatch2", void 0),
            __decorate([s(cc.Label)], t.prototype, "labelCoin", void 0),
            __decorate([s(cc.Node)], t.prototype, "dollar", void 0),
            __decorate([s(cc.Button)], t.prototype, "btnLip", void 0),
            __decorate([s(cc.Button)], t.prototype, "btnSfx", void 0),
            t = o = __decorate([c], t)
        } (cc.Component);
        o.BeginLayout = l,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./DataControl": "DataControl",
        "./GameScene": "GameScene"
    }],
    Bullet: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "c4eefhHQatFpbwRd/MffJS3", "Bullet"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("../GameScene"),
        a = e("../DataControl"),
        i = cc._decorator,
        r = i.ccclass,
        c = (i.property,
        function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.namestr = "bullet",
                t.damage = 1,
                t.level = 0,
                t
            }
            return __extends(t, e),
            t.prototype.start = function() {},
            t.prototype.setInfo = function(e) {
                this.level = e,
                this.damage = a.DataControl.ItemLevels[this.level].damage,
                this.node.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().gameAtlas.getSpriteFrame("bullet" + n.GameScene.getInstance().currentSceneIndex)
            },
            t.prototype.startFly = function() {
                this.node.runAction(cc.repeatForever(cc.moveBy(.01, cc.v2(0, 30)))),
                this.schedule(this.flyLogic, .5)
            },
            t.prototype.flyLogic = function(e) {
                var t = cc.winSize.height,
                o = cc.winSize.width,
                a = this.node.parent.convertToWorldSpaceAR(this.node.position); (a.x <= 0 || a.x >= o || a.y <= 0 || a.y >= t) && (n.GameScene.getInstance().deleteElementFormBulletPool(this.node), this.node.destroy())
            },
            t.prototype.onCollisionEnter = function(e, t) {
                n.GameScene.getInstance().deleteElementFormBulletPool(this.node),
                this.node.destroy()
            },
            t = __decorate([r], t)
        } (cc.Component));
        o.Bullet = c,
        cc._RF.pop()
    },
    {
        "../DataControl": "DataControl",
        "../GameScene": "GameScene"
    }],
    1 : [function(e, t, o) {
        "use strict";
        o.byteLength = function(e) {
            var t = l(e),
            o = t[0],
            n = t[1];
            return 3 * (o + n) / 4 - n
        },
        o.toByteArray = function(e) {
            for (var t, o = l(e), n = o[0], r = o[1], c = new i(function(e, t, o) {
                return 3 * (t + o) / 4 - o
            } (0, n, r)), s = 0, h = r > 0 ? n - 4 : n, u = 0; u < h; u += 4) t = a[e.charCodeAt(u)] << 18 | a[e.charCodeAt(u + 1)] << 12 | a[e.charCodeAt(u + 2)] << 6 | a[e.charCodeAt(u + 3)],
            c[s++] = t >> 16 & 255,
            c[s++] = t >> 8 & 255,
            c[s++] = 255 & t;
            2 === r && (t = a[e.charCodeAt(u)] << 2 | a[e.charCodeAt(u + 1)] >> 4, c[s++] = 255 & t);
            1 === r && (t = a[e.charCodeAt(u)] << 10 | a[e.charCodeAt(u + 1)] << 4 | a[e.charCodeAt(u + 2)] >> 2, c[s++] = t >> 8 & 255, c[s++] = 255 & t);
            return c
        },
        o.fromByteArray = function(e) {
            for (var t, o = e.length,
            a = o % 3,
            i = [], r = 0, c = o - a; r < c; r += 16383) i.push(u(e, r, r + 16383 > c ? c: r + 16383));
            1 === a ? (t = e[o - 1], i.push(n[t >> 2] + n[t << 4 & 63] + "==")) : 2 === a && (t = (e[o - 2] << 8) + e[o - 1], i.push(n[t >> 10] + n[t >> 4 & 63] + n[t << 2 & 63] + "="));
            return i.join("")
        };
        for (var n = [], a = [], i = "undefined" != typeof Uint8Array ? Uint8Array: Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", c = 0, s = r.length; c < s; ++c) n[c] = r[c],
        a[r.charCodeAt(c)] = c;
        function l(e) {
            var t = e.length;
            if (t % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
            var o = e.indexOf("=");
            return - 1 === o && (o = t),
            [o, o === t ? 0 : 4 - o % 4]
        }
        function h(e) {
            return n[e >> 18 & 63] + n[e >> 12 & 63] + n[e >> 6 & 63] + n[63 & e]
        }
        function u(e, t, o) {
            for (var n, a = [], i = t; i < o; i += 3) n = (e[i] << 16 & 16711680) + (e[i + 1] << 8 & 65280) + (255 & e[i + 2]),
            a.push(h(n));
            return a.join("")
        }
        a["-".charCodeAt(0)] = 62,
        a["_".charCodeAt(0)] = 63
    },
    {}],
    2 : [function(e, t, o) { (function(t) {
            "use strict";
            var n = e("base64-js"),
            a = e("ieee754"),
            i = e("isarray");
            function r() {
                return s.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823
            }
            function c(e, t) {
                if (r() < t) throw new RangeError("Invalid typed array length");
                return s.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = s.prototype: (null === e && (e = new s(t)), e.length = t),
                e
            }
            function s(e, t, o) {
                if (! (s.TYPED_ARRAY_SUPPORT || this instanceof s)) return new s(e, t, o);
                if ("number" == typeof e) {
                    if ("string" == typeof t) throw new Error("If encoding is specified then the first argument must be a string");
                    return u(this, e)
                }
                return l(this, e, t, o)
            }
            function l(e, t, o, n) {
                if ("number" == typeof t) throw new TypeError('"value" argument must not be a number');
                return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ?
                function(e, t, o, n) {
                    if (t.byteLength, o < 0 || t.byteLength < o) throw new RangeError("'offset' is out of bounds");
                    if (t.byteLength < o + (n || 0)) throw new RangeError("'length' is out of bounds");
                    t = void 0 === o && void 0 === n ? new Uint8Array(t) : void 0 === n ? new Uint8Array(t, o) : new Uint8Array(t, o, n);
                    s.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = s.prototype: e = p(e, t);
                    return e
                } (e, t, o, n) : "string" == typeof t ?
                function(e, t, o) {
                    "string" == typeof o && "" !== o || (o = "utf8");
                    if (!s.isEncoding(o)) throw new TypeError('"encoding" must be a valid string encoding');
                    var n = 0 | f(t, o),
                    a = (e = c(e, n)).write(t, o);
                    a !== n && (e = e.slice(0, a));
                    return e
                } (e, t, o) : function(e, t) {
                    if (s.isBuffer(t)) {
                        var o = 0 | d(t.length);
                        return 0 === (e = c(e, o)).length ? e: (t.copy(e, 0, 0, o), e)
                    }
                    if (t) {
                        if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length" in t) return "number" != typeof t.length ||
                        function(e) {
                            return e != e
                        } (t.length) ? c(e, 0) : p(e, t);
                        if ("Buffer" === t.type && i(t.data)) return p(e, t.data)
                    }
                    throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")
                } (e, t)
            }
            function h(e) {
                if ("number" != typeof e) throw new TypeError('"size" argument must be a number');
                if (e < 0) throw new RangeError('"size" argument must not be negative')
            }
            function u(e, t) {
                if (h(t), e = c(e, t < 0 ? 0 : 0 | d(t)), !s.TYPED_ARRAY_SUPPORT) for (var o = 0; o < t; ++o) e[o] = 0;
                return e
            }
            function p(e, t) {
                var o = t.length < 0 ? 0 : 0 | d(t.length);
                e = c(e, o);
                for (var n = 0; n < o; n += 1) e[n] = 255 & t[n];
                return e
            }
            function d(e) {
                if (e >= r()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + r().toString(16) + " bytes");
                return 0 | e
            }
            function f(e, t) {
                if (s.isBuffer(e)) return e.length;
                if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)) return e.byteLength;
                "string" != typeof e && (e = "" + e);
                var o = e.length;
                if (0 === o) return 0;
                for (var n = !1;;) switch (t) {
                case "ascii":
                case "latin1":
                case "binary":
                    return o;
                case "utf8":
                case "utf-8":
                case void 0:
                    return U(e).length;
                case "ucs2":
                case "ucs-2":
                case "utf16le":
                case "utf-16le":
                    return 2 * o;
                case "hex":
                    return o >>> 1;
                case "base64":
                    return Y(e).length;
                default:
                    if (n) return U(e).length;
                    t = ("" + t).toLowerCase(),
                    n = !0
                }
            }
            function y(e, t, o) {
                var n = e[t];
                e[t] = e[o],
                e[o] = n
            }
            function g(e, t, o, n, a) {
                if (0 === e.length) return - 1;
                if ("string" == typeof o ? (n = o, o = 0) : o > 2147483647 ? o = 2147483647 : o < -2147483648 && (o = -2147483648), o = +o, isNaN(o) && (o = a ? 0 : e.length - 1), o < 0 && (o = e.length + o), o >= e.length) {
                    if (a) return - 1;
                    o = e.length - 1
                } else if (o < 0) {
                    if (!a) return - 1;
                    o = 0
                }
                if ("string" == typeof t && (t = s.from(t, n)), s.isBuffer(t)) return 0 === t.length ? -1 : m(e, t, o, n, a);
                if ("number" == typeof t) return t &= 255,
                s.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? a ? Uint8Array.prototype.indexOf.call(e, t, o) : Uint8Array.prototype.lastIndexOf.call(e, t, o) : m(e, [t], o, n, a);
                throw new TypeError("val must be string, number or Buffer")
            }
            function m(e, t, o, n, a) {
                var i, r = 1,
                c = e.length,
                s = t.length;
                if (void 0 !== n && ("ucs2" === (n = String(n).toLowerCase()) || "ucs-2" === n || "utf16le" === n || "utf-16le" === n)) {
                    if (e.length < 2 || t.length < 2) return - 1;
                    r = 2,
                    c /= 2,
                    s /= 2,
                    o /= 2
                }
                function l(e, t) {
                    return 1 === r ? e[t] : e.readUInt16BE(t * r)
                }
                if (a) {
                    var h = -1;
                    for (i = o; i < c; i++) if (l(e, i) === l(t, -1 === h ? 0 : i - h)) {
                        if ( - 1 === h && (h = i), i - h + 1 === s) return h * r
                    } else - 1 !== h && (i -= i - h),
                    h = -1
                } else for (o + s > c && (o = c - s), i = o; i >= 0; i--) {
                    for (var u = !0,
                    p = 0; p < s; p++) if (l(e, i + p) !== l(t, p)) {
                        u = !1;
                        break
                    }
                    if (u) return i
                }
                return - 1
            }
            function v(e, t, o, n) {
                o = Number(o) || 0;
                var a = e.length - o;
                n ? (n = Number(n)) > a && (n = a) : n = a;
                var i = t.length;
                if (i % 2 != 0) throw new TypeError("Invalid hex string");
                n > i / 2 && (n = i / 2);
                for (var r = 0; r < n; ++r) {
                    var c = parseInt(t.substr(2 * r, 2), 16);
                    if (isNaN(c)) return r;
                    e[o + r] = c
                }
                return r
            }
            function b(e, t, o, n) {
                return V(U(t, e.length - o), e, o, n)
            }
            function S(e, t, o, n) {
                return V(function(e) {
                    for (var t = [], o = 0; o < e.length; ++o) t.push(255 & e.charCodeAt(o));
                    return t
                } (t), e, o, n)
            }
            function C(e, t, o, n) {
                return S(e, t, o, n)
            }
            function L(e, t, o, n) {
                return V(Y(t), e, o, n)
            }
            function A(e, t, o, n) {
                return V(function(e, t) {
                    for (var o, n, a, i = [], r = 0; r < e.length && !((t -= 2) < 0); ++r) o = e.charCodeAt(r),
                    n = o >> 8,
                    a = o % 256,
                    i.push(a),
                    i.push(n);
                    return i
                } (t, e.length - o), e, o, n)
            }
            function _(e, t, o) {
                return 0 === t && o === e.length ? n.fromByteArray(e) : n.fromByteArray(e.slice(t, o))
            }
            function D(e, t, o) {
                o = Math.min(e.length, o);
                for (var n = [], a = t; a < o;) {
                    var i, r, c, s, l = e[a],
                    h = null,
                    u = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1;
                    if (a + u <= o) switch (u) {
                    case 1:
                        l < 128 && (h = l);
                        break;
                    case 2:
                        128 == (192 & (i = e[a + 1])) && (s = (31 & l) << 6 | 63 & i) > 127 && (h = s);
                        break;
                    case 3:
                        i = e[a + 1],
                        r = e[a + 2],
                        128 == (192 & i) && 128 == (192 & r) && (s = (15 & l) << 12 | (63 & i) << 6 | 63 & r) > 2047 && (s < 55296 || s > 57343) && (h = s);
                        break;
                    case 4:
                        i = e[a + 1],
                        r = e[a + 2],
                        c = e[a + 3],
                        128 == (192 & i) && 128 == (192 & r) && 128 == (192 & c) && (s = (15 & l) << 18 | (63 & i) << 12 | (63 & r) << 6 | 63 & c) > 65535 && s < 1114112 && (h = s)
                    }
                    null === h ? (h = 65533, u = 1) : h > 65535 && (h -= 65536, n.push(h >>> 10 & 1023 | 55296), h = 56320 | 1023 & h),
                    n.push(h),
                    a += u
                }
                return function(e) {
                    var t = e.length;
                    if (t <= I) return String.fromCharCode.apply(String, e);
                    var o = "",
                    n = 0;
                    for (; n < t;) o += String.fromCharCode.apply(String, e.slice(n, n += I));
                    return o
                } (n)
            }
            o.Buffer = s,
            o.SlowBuffer = function(e) { + e != e && (e = 0);
                return s.alloc( + e)
            },
            o.INSPECT_MAX_BYTES = 50,
            s.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT: function() {
                try {
                    var e = new Uint8Array(1);
                    return e.__proto__ = {
                        __proto__: Uint8Array.prototype,
                        foo: function() {
                            return 42
                        }
                    },
                    42 === e.foo() && "function" == typeof e.subarray && 0 === e.subarray(1, 1).byteLength
                } catch(e) {
                    return ! 1
                }
            } (),
            o.kMaxLength = r(),
            s.poolSize = 8192,
            s._augment = function(e) {
                return e.__proto__ = s.prototype,
                e
            },
            s.from = function(e, t, o) {
                return l(null, e, t, o)
            },
            s.TYPED_ARRAY_SUPPORT && (s.prototype.__proto__ = Uint8Array.prototype, s.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && s[Symbol.species] === s && Object.defineProperty(s, Symbol.species, {
                value: null,
                configurable: !0
            })),
            s.alloc = function(e, t, o) {
                return function(e, t, o, n) {
                    return h(t),
                    t <= 0 ? c(e, t) : void 0 !== o ? "string" == typeof n ? c(e, t).fill(o, n) : c(e, t).fill(o) : c(e, t)
                } (null, e, t, o)
            },
            s.allocUnsafe = function(e) {
                return u(null, e)
            },
            s.allocUnsafeSlow = function(e) {
                return u(null, e)
            },
            s.isBuffer = function(e) {
                return ! (null == e || !e._isBuffer)
            },
            s.compare = function(e, t) {
                if (!s.isBuffer(e) || !s.isBuffer(t)) throw new TypeError("Arguments must be Buffers");
                if (e === t) return 0;
                for (var o = e.length,
                n = t.length,
                a = 0,
                i = Math.min(o, n); a < i; ++a) if (e[a] !== t[a]) {
                    o = e[a],
                    n = t[a];
                    break
                }
                return o < n ? -1 : n < o ? 1 : 0
            },
            s.isEncoding = function(e) {
                switch (String(e).toLowerCase()) {
                case "hex":
                case "utf8":
                case "utf-8":
                case "ascii":
                case "latin1":
                case "binary":
                case "base64":
                case "ucs2":
                case "ucs-2":
                case "utf16le":
                case "utf-16le":
                    return ! 0;
                default:
                    return ! 1
                }
            },
            s.concat = function(e, t) {
                if (!i(e)) throw new TypeError('"list" argument must be an Array of Buffers');
                if (0 === e.length) return s.alloc(0);
                var o;
                if (void 0 === t) for (t = 0, o = 0; o < e.length; ++o) t += e[o].length;
                var n = s.allocUnsafe(t),
                a = 0;
                for (o = 0; o < e.length; ++o) {
                    var r = e[o];
                    if (!s.isBuffer(r)) throw new TypeError('"list" argument must be an Array of Buffers');
                    r.copy(n, a),
                    a += r.length
                }
                return n
            },
            s.byteLength = f,
            s.prototype._isBuffer = !0,
            s.prototype.swap16 = function() {
                var e = this.length;
                if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
                for (var t = 0; t < e; t += 2) y(this, t, t + 1);
                return this
            },
            s.prototype.swap32 = function() {
                var e = this.length;
                if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
                for (var t = 0; t < e; t += 4) y(this, t, t + 3),
                y(this, t + 1, t + 2);
                return this
            },
            s.prototype.swap64 = function() {
                var e = this.length;
                if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
                for (var t = 0; t < e; t += 8) y(this, t, t + 7),
                y(this, t + 1, t + 6),
                y(this, t + 2, t + 5),
                y(this, t + 3, t + 4);
                return this
            },
            s.prototype.toString = function() {
                var e = 0 | this.length;
                return 0 === e ? "": 0 === arguments.length ? D(this, 0, e) : function(e, t, o) {
                    var n = !1;
                    if ((void 0 === t || t < 0) && (t = 0), t > this.length) return "";
                    if ((void 0 === o || o > this.length) && (o = this.length), o <= 0) return "";
                    if ((o >>>= 0) <= (t >>>= 0)) return "";
                    for (e || (e = "utf8");;) switch (e) {
                    case "hex":
                        return E(this, t, o);
                    case "utf8":
                    case "utf-8":
                        return D(this, t, o);
                    case "ascii":
                        return B(this, t, o);
                    case "latin1":
                    case "binary":
                        return w(this, t, o);
                    case "base64":
                        return _(this, t, o);
                    case "ucs2":
                    case "ucs-2":
                    case "utf16le":
                    case "utf-16le":
                        return M(this, t, o);
                    default:
                        if (n) throw new TypeError("Unknown encoding: " + e);
                        e = (e + "").toLowerCase(),
                        n = !0
                    }
                }.apply(this, arguments)
            },
            s.prototype.equals = function(e) {
                if (!s.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
                return this === e || 0 === s.compare(this, e)
            },
            s.prototype.inspect = function() {
                var e = "",
                t = o.INSPECT_MAX_BYTES;
                return this.length > 0 && (e = this.toString("hex", 0, t).match(/.{2}/g).join(" "), this.length > t && (e += " ... ")),
                "<Buffer " + e + ">"
            },
            s.prototype.compare = function(e, t, o, n, a) {
                if (!s.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
                if (void 0 === t && (t = 0), void 0 === o && (o = e ? e.length: 0), void 0 === n && (n = 0), void 0 === a && (a = this.length), t < 0 || o > e.length || n < 0 || a > this.length) throw new RangeError("out of range index");
                if (n >= a && t >= o) return 0;
                if (n >= a) return - 1;
                if (t >= o) return 1;
                if (t >>>= 0, o >>>= 0, n >>>= 0, a >>>= 0, this === e) return 0;
                for (var i = a - n,
                r = o - t,
                c = Math.min(i, r), l = this.slice(n, a), h = e.slice(t, o), u = 0; u < c; ++u) if (l[u] !== h[u]) {
                    i = l[u],
                    r = h[u];
                    break
                }
                return i < r ? -1 : r < i ? 1 : 0
            },
            s.prototype.includes = function(e, t, o) {
                return - 1 !== this.indexOf(e, t, o)
            },
            s.prototype.indexOf = function(e, t, o) {
                return g(this, e, t, o, !0)
            },
            s.prototype.lastIndexOf = function(e, t, o) {
                return g(this, e, t, o, !1)
            },
            s.prototype.write = function(e, t, o, n) {
                if (void 0 === t) n = "utf8",
                o = this.length,
                t = 0;
                else if (void 0 === o && "string" == typeof t) n = t,
                o = this.length,
                t = 0;
                else {
                    if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
                    t |= 0,
                    isFinite(o) ? (o |= 0, void 0 === n && (n = "utf8")) : (n = o, o = void 0)
                }
                var a = this.length - t;
                if ((void 0 === o || o > a) && (o = a), e.length > 0 && (o < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");
                n || (n = "utf8");
                for (var i = !1;;) switch (n) {
                case "hex":
                    return v(this, e, t, o);
                case "utf8":
                case "utf-8":
                    return b(this, e, t, o);
                case "ascii":
                    return S(this, e, t, o);
                case "latin1":
                case "binary":
                    return C(this, e, t, o);
                case "base64":
                    return L(this, e, t, o);
                case "ucs2":
                case "ucs-2":
                case "utf16le":
                case "utf-16le":
                    return A(this, e, t, o);
                default:
                    if (i) throw new TypeError("Unknown encoding: " + n);
                    n = ("" + n).toLowerCase(),
                    i = !0
                }
            },
            s.prototype.toJSON = function() {
                return {
                    type: "Buffer",
                    data: Array.prototype.slice.call(this._arr || this, 0)
                }
            };
            var I = 4096;
            function B(e, t, o) {
                var n = "";
                o = Math.min(e.length, o);
                for (var a = t; a < o; ++a) n += String.fromCharCode(127 & e[a]);
                return n
            }
            function w(e, t, o) {
                var n = "";
                o = Math.min(e.length, o);
                for (var a = t; a < o; ++a) n += String.fromCharCode(e[a]);
                return n
            }
            function E(e, t, o) {
                var n = e.length; (!t || t < 0) && (t = 0),
                (!o || o < 0 || o > n) && (o = n);
                for (var a = "",
                i = t; i < o; ++i) a += F(e[i]);
                return a
            }
            function M(e, t, o) {
                for (var n = e.slice(t, o), a = "", i = 0; i < n.length; i += 2) a += String.fromCharCode(n[i] + 256 * n[i + 1]);
                return a
            }
            function T(e, t, o) {
                if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");
                if (e + t > o) throw new RangeError("Trying to access beyond buffer length")
            }
            function P(e, t, o, n, a, i) {
                if (!s.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
                if (t > a || t < i) throw new RangeError('"value" argument is out of bounds');
                if (o + n > e.length) throw new RangeError("Index out of range")
            }
            function R(e, t, o, n) {
                t < 0 && (t = 65535 + t + 1);
                for (var a = 0,
                i = Math.min(e.length - o, 2); a < i; ++a) e[o + a] = (t & 255 << 8 * (n ? a: 1 - a)) >>> 8 * (n ? a: 1 - a)
            }
            function N(e, t, o, n) {
                t < 0 && (t = 4294967295 + t + 1);
                for (var a = 0,
                i = Math.min(e.length - o, 4); a < i; ++a) e[o + a] = t >>> 8 * (n ? a: 3 - a) & 255
            }
            function G(e, t, o, n, a, i) {
                if (o + n > e.length) throw new RangeError("Index out of range");
                if (o < 0) throw new RangeError("Index out of range")
            }
            function k(e, t, o, n, i) {
                return i || G(e, 0, o, 4),
                a.write(e, t, o, n, 23, 4),
                o + 4
            }
            function O(e, t, o, n, i) {
                return i || G(e, 0, o, 8),
                a.write(e, t, o, n, 52, 8),
                o + 8
            }
            s.prototype.slice = function(e, t) {
                var o, n = this.length;
                if (e = ~~e, t = void 0 === t ? n: ~~t, e < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n), t < 0 ? (t += n) < 0 && (t = 0) : t > n && (t = n), t < e && (t = e), s.TYPED_ARRAY_SUPPORT)(o = this.subarray(e, t)).__proto__ = s.prototype;
                else {
                    var a = t - e;
                    o = new s(a, void 0);
                    for (var i = 0; i < a; ++i) o[i] = this[i + e]
                }
                return o
            },
            s.prototype.readUIntLE = function(e, t, o) {
                e |= 0,
                t |= 0,
                o || T(e, t, this.length);
                for (var n = this[e], a = 1, i = 0; ++i < t && (a *= 256);) n += this[e + i] * a;
                return n
            },
            s.prototype.readUIntBE = function(e, t, o) {
                e |= 0,
                t |= 0,
                o || T(e, t, this.length);
                for (var n = this[e + --t], a = 1; t > 0 && (a *= 256);) n += this[e + --t] * a;
                return n
            },
            s.prototype.readUInt8 = function(e, t) {
                return t || T(e, 1, this.length),
                this[e]
            },
            s.prototype.readUInt16LE = function(e, t) {
                return t || T(e, 2, this.length),
                this[e] | this[e + 1] << 8
            },
            s.prototype.readUInt16BE = function(e, t) {
                return t || T(e, 2, this.length),
                this[e] << 8 | this[e + 1]
            },
            s.prototype.readUInt32LE = function(e, t) {
                return t || T(e, 4, this.length),
                (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3]
            },
            s.prototype.readUInt32BE = function(e, t) {
                return t || T(e, 4, this.length),
                16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3])
            },
            s.prototype.readIntLE = function(e, t, o) {
                e |= 0,
                t |= 0,
                o || T(e, t, this.length);
                for (var n = this[e], a = 1, i = 0; ++i < t && (a *= 256);) n += this[e + i] * a;
                return n >= (a *= 128) && (n -= Math.pow(2, 8 * t)),
                n
            },
            s.prototype.readIntBE = function(e, t, o) {
                e |= 0,
                t |= 0,
                o || T(e, t, this.length);
                for (var n = t,
                a = 1,
                i = this[e + --n]; n > 0 && (a *= 256);) i += this[e + --n] * a;
                return i >= (a *= 128) && (i -= Math.pow(2, 8 * t)),
                i
            },
            s.prototype.readInt8 = function(e, t) {
                return t || T(e, 1, this.length),
                128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
            },
            s.prototype.readInt16LE = function(e, t) {
                t || T(e, 2, this.length);
                var o = this[e] | this[e + 1] << 8;
                return 32768 & o ? 4294901760 | o: o
            },
            s.prototype.readInt16BE = function(e, t) {
                t || T(e, 2, this.length);
                var o = this[e + 1] | this[e] << 8;
                return 32768 & o ? 4294901760 | o: o
            },
            s.prototype.readInt32LE = function(e, t) {
                return t || T(e, 4, this.length),
                this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24
            },
            s.prototype.readInt32BE = function(e, t) {
                return t || T(e, 4, this.length),
                this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]
            },
            s.prototype.readFloatLE = function(e, t) {
                return t || T(e, 4, this.length),
                a.read(this, e, !0, 23, 4)
            },
            s.prototype.readFloatBE = function(e, t) {
                return t || T(e, 4, this.length),
                a.read(this, e, !1, 23, 4)
            },
            s.prototype.readDoubleLE = function(e, t) {
                return t || T(e, 8, this.length),
                a.read(this, e, !0, 52, 8)
            },
            s.prototype.readDoubleBE = function(e, t) {
                return t || T(e, 8, this.length),
                a.read(this, e, !1, 52, 8)
            },
            s.prototype.writeUIntLE = function(e, t, o, n) { (e = +e, t |= 0, o |= 0, n) || P(this, e, t, o, Math.pow(2, 8 * o) - 1, 0);
                var a = 1,
                i = 0;
                for (this[t] = 255 & e; ++i < o && (a *= 256);) this[t + i] = e / a & 255;
                return t + o
            },
            s.prototype.writeUIntBE = function(e, t, o, n) { (e = +e, t |= 0, o |= 0, n) || P(this, e, t, o, Math.pow(2, 8 * o) - 1, 0);
                var a = o - 1,
                i = 1;
                for (this[t + a] = 255 & e; --a >= 0 && (i *= 256);) this[t + a] = e / i & 255;
                return t + o
            },
            s.prototype.writeUInt8 = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 1, 255, 0),
                s.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
                this[t] = 255 & e,
                t + 1
            },
            s.prototype.writeUInt16LE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 2, 65535, 0),
                s.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : R(this, e, t, !0),
                t + 2
            },
            s.prototype.writeUInt16BE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 2, 65535, 0),
                s.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : R(this, e, t, !1),
                t + 2
            },
            s.prototype.writeUInt32LE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 4, 4294967295, 0),
                s.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : N(this, e, t, !0),
                t + 4
            },
            s.prototype.writeUInt32BE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 4, 4294967295, 0),
                s.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : N(this, e, t, !1),
                t + 4
            },
            s.prototype.writeIntLE = function(e, t, o, n) {
                if (e = +e, t |= 0, !n) {
                    var a = Math.pow(2, 8 * o - 1);
                    P(this, e, t, o, a - 1, -a)
                }
                var i = 0,
                r = 1,
                c = 0;
                for (this[t] = 255 & e; ++i < o && (r *= 256);) e < 0 && 0 === c && 0 !== this[t + i - 1] && (c = 1),
                this[t + i] = (e / r >> 0) - c & 255;
                return t + o
            },
            s.prototype.writeIntBE = function(e, t, o, n) {
                if (e = +e, t |= 0, !n) {
                    var a = Math.pow(2, 8 * o - 1);
                    P(this, e, t, o, a - 1, -a)
                }
                var i = o - 1,
                r = 1,
                c = 0;
                for (this[t + i] = 255 & e; --i >= 0 && (r *= 256);) e < 0 && 0 === c && 0 !== this[t + i + 1] && (c = 1),
                this[t + i] = (e / r >> 0) - c & 255;
                return t + o
            },
            s.prototype.writeInt8 = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 1, 127, -128),
                s.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
                e < 0 && (e = 255 + e + 1),
                this[t] = 255 & e,
                t + 1
            },
            s.prototype.writeInt16LE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 2, 32767, -32768),
                s.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : R(this, e, t, !0),
                t + 2
            },
            s.prototype.writeInt16BE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 2, 32767, -32768),
                s.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : R(this, e, t, !1),
                t + 2
            },
            s.prototype.writeInt32LE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 4, 2147483647, -2147483648),
                s.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : N(this, e, t, !0),
                t + 4
            },
            s.prototype.writeInt32BE = function(e, t, o) {
                return e = +e,
                t |= 0,
                o || P(this, e, t, 4, 2147483647, -2147483648),
                e < 0 && (e = 4294967295 + e + 1),
                s.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : N(this, e, t, !1),
                t + 4
            },
            s.prototype.writeFloatLE = function(e, t, o) {
                return k(this, e, t, !0, o)
            },
            s.prototype.writeFloatBE = function(e, t, o) {
                return k(this, e, t, !1, o)
            },
            s.prototype.writeDoubleLE = function(e, t, o) {
                return O(this, e, t, !0, o)
            },
            s.prototype.writeDoubleBE = function(e, t, o) {
                return O(this, e, t, !1, o)
            },
            s.prototype.copy = function(e, t, o, n) {
                if (o || (o = 0), n || 0 === n || (n = this.length), t >= e.length && (t = e.length), t || (t = 0), n > 0 && n < o && (n = o), n === o) return 0;
                if (0 === e.length || 0 === this.length) return 0;
                if (t < 0) throw new RangeError("targetStart out of bounds");
                if (o < 0 || o >= this.length) throw new RangeError("sourceStart out of bounds");
                if (n < 0) throw new RangeError("sourceEnd out of bounds");
                n > this.length && (n = this.length),
                e.length - t < n - o && (n = e.length - t + o);
                var a, i = n - o;
                if (this === e && o < t && t < n) for (a = i - 1; a >= 0; --a) e[a + t] = this[a + o];
                else if (i < 1e3 || !s.TYPED_ARRAY_SUPPORT) for (a = 0; a < i; ++a) e[a + t] = this[a + o];
                else Uint8Array.prototype.set.call(e, this.subarray(o, o + i), t);
                return i
            },
            s.prototype.fill = function(e, t, o, n) {
                if ("string" == typeof e) {
                    if ("string" == typeof t ? (n = t, t = 0, o = this.length) : "string" == typeof o && (n = o, o = this.length), 1 === e.length) {
                        var a = e.charCodeAt(0);
                        a < 256 && (e = a)
                    }
                    if (void 0 !== n && "string" != typeof n) throw new TypeError("encoding must be a string");
                    if ("string" == typeof n && !s.isEncoding(n)) throw new TypeError("Unknown encoding: " + n)
                } else "number" == typeof e && (e &= 255);
                if (t < 0 || this.length < t || this.length < o) throw new RangeError("Out of range index");
                if (o <= t) return this;
                var i;
                if (t >>>= 0, o = void 0 === o ? this.length: o >>> 0, e || (e = 0), "number" == typeof e) for (i = t; i < o; ++i) this[i] = e;
                else {
                    var r = s.isBuffer(e) ? e: U(new s(e, n).toString()),
                    c = r.length;
                    for (i = 0; i < o - t; ++i) this[i + t] = r[i % c]
                }
                return this
            };
            var x = /[^+\/0-9A-Za-z-_]/g;
            function F(e) {
                return e < 16 ? "0" + e.toString(16) : e.toString(16)
            }
            function U(e, t) {
                var o;
                t = t || 1 / 0;
                for (var n = e.length,
                a = null,
                i = [], r = 0; r < n; ++r) {
                    if ((o = e.charCodeAt(r)) > 55295 && o < 57344) {
                        if (!a) {
                            if (o > 56319) { (t -= 3) > -1 && i.push(239, 191, 189);
                                continue
                            }
                            if (r + 1 === n) { (t -= 3) > -1 && i.push(239, 191, 189);
                                continue
                            }
                            a = o;
                            continue
                        }
                        if (o < 56320) { (t -= 3) > -1 && i.push(239, 191, 189),
                            a = o;
                            continue
                        }
                        o = 65536 + (a - 55296 << 10 | o - 56320)
                    } else a && (t -= 3) > -1 && i.push(239, 191, 189);
                    if (a = null, o < 128) {
                        if ((t -= 1) < 0) break;
                        i.push(o)
                    } else if (o < 2048) {
                        if ((t -= 2) < 0) break;
                        i.push(o >> 6 | 192, 63 & o | 128)
                    } else if (o < 65536) {
                        if ((t -= 3) < 0) break;
                        i.push(o >> 12 | 224, o >> 6 & 63 | 128, 63 & o | 128)
                    } else {
                        if (! (o < 1114112)) throw new Error("Invalid code point");
                        if ((t -= 4) < 0) break;
                        i.push(o >> 18 | 240, o >> 12 & 63 | 128, o >> 6 & 63 | 128, 63 & o | 128)
                    }
                }
                return i
            }
            function Y(e) {
                return n.toByteArray(function(e) {
                    if ((e = function(e) {
                        return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "")
                    } (e).replace(x, "")).length < 2) return "";
                    for (; e.length % 4 != 0;) e += "=";
                    return e
                } (e))
            }
            function V(e, t, o, n) {
                for (var a = 0; a < n && !(a + o >= t.length || a >= e.length); ++a) t[a + o] = e[a];
                return a
            }
        }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
    },
    {
        "base64-js": 1,
        ieee754: 4,
        isarray: 3
    }],
    3 : [function(e, t, o) {
        var n = {}.toString;
        t.exports = Array.isArray ||
        function(e) {
            return "[object Array]" == n.call(e)
        }
    },
    {}],
    4 : [function(e, t, o) {
        o.read = function(e, t, o, n, a) {
            var i, r, c = 8 * a - n - 1,
            s = (1 << c) - 1,
            l = s >> 1,
            h = -7,
            u = o ? a - 1 : 0,
            p = o ? -1 : 1,
            d = e[t + u];
            for (u += p, i = d & (1 << -h) - 1, d >>= -h, h += c; h > 0; i = 256 * i + e[t + u], u += p, h -= 8);
            for (r = i & (1 << -h) - 1, i >>= -h, h += n; h > 0; r = 256 * r + e[t + u], u += p, h -= 8);
            if (0 === i) i = 1 - l;
            else {
                if (i === s) return r ? NaN: 1 / 0 * (d ? -1 : 1);
                r += Math.pow(2, n),
                i -= l
            }
            return (d ? -1 : 1) * r * Math.pow(2, i - n)
        },
        o.write = function(e, t, o, n, a, i) {
            var r, c, s, l = 8 * i - a - 1,
            h = (1 << l) - 1,
            u = h >> 1,
            p = 23 === a ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
            d = n ? 0 : i - 1,
            f = n ? 1 : -1,
            y = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
            for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (c = isNaN(t) ? 1 : 0, r = h) : (r = Math.floor(Math.log(t) / Math.LN2), t * (s = Math.pow(2, -r)) < 1 && (r--, s *= 2), (t += r + u >= 1 ? p / s: p * Math.pow(2, 1 - u)) * s >= 2 && (r++, s /= 2), r + u >= h ? (c = 0, r = h) : r + u >= 1 ? (c = (t * s - 1) * Math.pow(2, a), r += u) : (c = t * Math.pow(2, u - 1) * Math.pow(2, a), r = 0)); a >= 8; e[o + d] = 255 & c, d += f, c /= 256, a -= 8);
            for (r = r << a | c, l += a; l > 0; e[o + d] = 255 & r, d += f, r /= 256, l -= 8);
            e[o + d - f] |= 128 * y
        }
    },
    {}],
    CSV: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "555cbyvDoZND6BBLBdlvh5C", "CSV");
        var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ?
        function(e) {
            return typeof e
        }: function(e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol": typeof e
        }; (function() {
            var e = ["|", "^"],
            o = [",", ";", "\t", "|", "^"],
            a = ["\r\n", "\r", "\n"];
            var i = Array.isArray ||
            function(e) {
                return "[object Array]" === toString.call(e)
            };
            function r(e) {
                return "string" == typeof e
            }
            function c(e, t) {
                return function(e) {
                    return null != e
                } (e) ? e: t
            }
            function s(e, t) {
                for (var o = 0,
                n = e.length; o < n && !1 !== t(e[o], o); o += 1);
            }
            function l(e) {
                return "attrs[" + e + "]"
            }
            function h(e, t) {
                return function(e) {
                    return ! isNaN(Number(e))
                } (e) ? "Number(" + l(t) + ")": function(e) {
                    return 0 == e || 1 == e
                } (e) ? "Boolean(" + l(t) + " == true)": "String(" + l(t) + ")"
            }
            function u(e, t, o) {
                var n = [];
                return 2 == arguments.length ? (e ? i(e) ? s(t,
                function(t, o) {
                    n.push(e[o] + "(" + l(o) + ")")
                }) : s(t,
                function(e, t) {
                    n.push(h(e, t))
                }) : s(t,
                function(e, t) {
                    n.push(l(t))
                }), n = "return [" + n.join(",") + "]") : (e ? i(e) ? s(t,
                function(t, a) {
                    n.push('"' + o[a] + '": ' + e[a] + "(" + l(a) + ")")
                }) : s(t,
                function(e, t) {
                    n.push('"' + o[t] + '": ' + h(e, t))
                }) : s(t,
                function(e, t) {
                    n.push('"' + o[t] + '": ' + l(t))
                }), n = "return {" + n.join(",") + "}"),
                new Function("attrs", n)
            }
            function p(t, o) {
                var n, a = 0;
                return s(o,
                function(o) {
                    var i, r = o; - 1 != e.indexOf(o) && (r = "\\" + r),
                    (i = t.match(new RegExp(r, "g"))) && i.length > a && (a = i.length, n = o)
                }),
                n || o[0]
            }
            var d = function() {
                function e(e, t) {
                    if (t || (t = {}), i(e)) this.mode = "encode";
                    else {
                        if (!r(e)) throw new Error("Incompatible format!");
                        this.mode = "parse"
                    }
                    this.data = e,
                    this.options = {
                        header: c(t.header, !1),
                        cast: c(t.cast, !0)
                    };
                    var n = t.lineDelimiter || t.line,
                    s = t.cellDelimiter || t.delimiter;
                    this.isParser() ? (this.options.lineDelimiter = n || p(this.data, a), this.options.cellDelimiter = s || p(this.data, o), this.data = function(e, t) {
                        e.slice( - t.length) != t && (e += t);
                        return e
                    } (this.data, this.options.lineDelimiter)) : this.isEncoder() && (this.options.lineDelimiter = n || "\r\n", this.options.cellDelimiter = s || ",")
                }
                function t(e, t, o) {
                    e(new t(o))
                }
                function l(e) {
                    return i(e) ? "array": function(e) {
                        var t = void 0 === e ? "undefined": n(e);
                        return "function" === t || "object" === t && !!e
                    } (e) ? "object": r(e) ? "string": function(e) {
                        return null == e
                    } (e) ? "null": "primitive"
                }
                return e.prototype.set = function(e, t) {
                    return this.options[e] = t
                },
                e.prototype.isParser = function() {
                    return "parse" == this.mode
                },
                e.prototype.isEncoder = function() {
                    return "encode" == this.mode
                },
                e.prototype.parse = function(e) {
                    if ("parse" == this.mode) {
                        if (0 === this.data.trim().length) return [];
                        var o, n, a, r = this.data,
                        c = this.options,
                        s = c.header,
                        l = {
                            cell: "",
                            line: []
                        };
                        e || (a = [], e = function(e) {
                            a.push(e)
                        }),
                        1 == c.lineDelimiter.length && (b = v);
                        var h, p, d, f = r.length,
                        y = c.cellDelimiter.charCodeAt(0),
                        g = c.lineDelimiter.charCodeAt(c.lineDelimiter.length - 1);
                        for (m(), h = 0, p = 0; h < f; h++) d = r.charCodeAt(h),
                        o.cell && (o.cell = !1, 34 == d) ? o.escaped = !0 : o.escaped && 34 == d ? o.quote = !o.quote: (o.escaped && o.quote || !o.escaped) && (d == y ? (v(l.cell + r.slice(p, h)), p = h + 1) : d == g && (b(l.cell + r.slice(p, h)), p = h + 1, S(), l.line = []));
                        return a || this
                    }
                    function m() {
                        o = {
                            escaped: !1,
                            quote: !1,
                            cell: !0
                        }
                    }
                    function v(e) {
                        l.line.push(o.escaped ? e.slice(1, -1).replace(/""/g, '"') : e),
                        l.cell = "",
                        m()
                    }
                    function b(e) {
                        v(e.slice(0, 1 - c.lineDelimiter.length))
                    }
                    function S() {
                        s ? i(s) ? (n = u(c.cast, l.line, s), (S = function() {
                            t(e, n, l.line)
                        })()) : s = l.line: (n || (n = u(c.cast, l.line)), (S = function() {
                            t(e, n, l.line)
                        })())
                    }
                },
                e.prototype.serialize = {
                    object: function(e) {
                        var t = this,
                        o = Object.keys(e),
                        n = Array(o.length);
                        return s(o,
                        function(o, a) {
                            n[a] = t[l(e[o])](e[o])
                        }),
                        n
                    },
                    array: function(e) {
                        var t = this,
                        o = Array(e.length);
                        return s(e,
                        function(e, n) {
                            o[n] = t[l(e)](e)
                        }),
                        o
                    },
                    string: function(e) {
                        return '"' + String(e).replace(/"/g, '""') + '"'
                    },
                    null: function(e) {
                        return ""
                    },
                    primitive: function(e) {
                        return e
                    }
                },
                e.prototype.encode = function(e) {
                    if ("encode" == this.mode) {
                        if (0 == this.data.length) return "";
                        var t, o, n = this.data,
                        a = this.options,
                        r = a.header,
                        c = n[0],
                        h = this.serialize,
                        u = 0;
                        e || (o = Array(n.length), e = function(e, t) {
                            o[t + u] = e
                        }),
                        r && (i(r) || (r = t = Object.keys(c)), e(f(h.array(r)), 0), u = 1);
                        var p, d = l(c);
                        return "array" == d ? (i(a.cast) ? (p = Array(a.cast.length), s(a.cast,
                        function(e, t) {
                            p[t] = e.toLowerCase()
                        })) : (p = Array(c.length), s(c,
                        function(e, t) {
                            p[t] = l(e)
                        })), s(n,
                        function(t, o) {
                            var n = Array(p.length);
                            s(t,
                            function(e, t) {
                                n[t] = h[p[t]](e)
                            }),
                            e(f(n), o)
                        })) : "object" == d && (t = Object.keys(c), i(a.cast) ? (p = Array(a.cast.length), s(a.cast,
                        function(e, t) {
                            p[t] = e.toLowerCase()
                        })) : (p = Array(t.length), s(t,
                        function(e, t) {
                            p[t] = l(c[e])
                        })), s(n,
                        function(o, n) {
                            var a = Array(t.length);
                            s(t,
                            function(e, t) {
                                a[t] = h[p[t]](o[e])
                            }),
                            e(f(a), n)
                        })),
                        o ? o.join(a.lineDelimiter) : this
                    }
                    function f(e) {
                        return e.join(a.cellDelimiter)
                    }
                },
                e.prototype.forEach = function(e) {
                    return this[this.mode](e)
                },
                e
            } ();
            d.parse = function(e, t) {
                return new d(e, t).parse()
            },
            d.encode = function(e, t) {
                return new d(e, t).encode()
            },
            d.forEach = function(e, t, o) {
                return 2 == arguments.length && (o = t),
                new d(e, t).forEach(o)
            },
            "function" == typeof define && define.amd ? define("CSV", [],
            function() {
                return d
            }) : "object" === (void 0 === t ? "undefined": n(t)) && t.exports ? t.exports = d: window && (window.CSV = d)
        })(),
        cc._RF.pop()
    },
    {}],
    Coin: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "dc55fjxftRBQIQxLsqfHTjt", "Coin"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("../GameScene"),
        a = e("../DataControl"),
        i = cc._decorator,
        r = i.ccclass,
        c = i.property,
        s = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.direction = 0,
                t.value = 1,
                t.speedX = 0,
                t.speedY = 0,
                t.defaultSpeedX = 60,
                t.defaultSpeedY = 60,
                t.countDispear = 5,
                t.top = 0,
                t
            }
            return __extends(t, e),
            t.prototype.start = function() {},
            t.prototype.beginToMove = function() {
                this.direction = a.DataControl.getRandomInt(0, 1),
                this.top = this.node.y + 50,
                this.freeFall(),
                this.beginToCheckCollid()
            },
            t.prototype.freeFall = function() {
                switch (this.direction) {
                case 0:
                    this.speedX = this.defaultSpeedX,
                    this.speedY = this.defaultSpeedY;
                    break;
                case 1:
                    this.speedX = -this.defaultSpeedX,
                    this.speedY = this.defaultSpeedY;
                    break;
                case 2:
                    this.speedX = -this.defaultSpeedX,
                    this.speedY = -this.defaultSpeedY;
                    break;
                case 3:
                    this.speedX = this.defaultSpeedX,
                    this.speedY = -this.defaultSpeedY
                }
                this.node.runAction(cc.repeatForever(cc.moveBy(.1, cc.v2(this.speedX, this.speedY))))
            },
            t.prototype.beginToCheckCollid = function() {
                this.schedule(this.checkCollid, .01, cc.macro.REPEAT_FOREVER, 0)
            },
            t.prototype.endCheckCollid = function() {
                this.unschedule(this.checkCollid)
            },
            t.prototype.checkCollid = function(e) {
                var t = this.node.getBoundingBox().width / 2;
                if (0 == this.direction) this.node.y >= this.top ? (this.direction = 3, this.node.stopAllActions(), this.freeFall()) : this.node.x + t >= 320 && (this.direction = 1, this.node.stopAllActions(), this.freeFall());
                else if (1 == this.direction) this.node.y >= this.top ? (this.direction = 2, this.node.stopAllActions(), this.freeFall()) : this.node.x - t <= -320 && (this.direction = 0, this.node.stopAllActions(), this.freeFall());
                else if (2 == this.direction) if (this.node.y <= -360) {
                    this.direction = 1,
                    this.node.stopAllActions();
                    this.node.runAction(cc.jumpTo(1, this.node.x - 150, -360, 50, 3)),
                    this.endCheckCollid(),
                    this.schedule(this.beginDespear, 1, cc.macro.REPEAT_FOREVER, 0)
                } else this.node.x - t <= -320 && (this.direction = 3, this.node.stopAllActions(), this.freeFall());
                else 3 == this.direction && (this.node.y <= -360 ? (this.direction = 0, this.node.stopAllActions(), this.node.runAction(cc.jumpTo(1, this.node.x + 150, -360, 50, 3)), this.endCheckCollid(), this.schedule(this.beginDespear, 1, cc.macro.REPEAT_FOREVER, 0)) : this.node.x + t >= 320 && (this.direction = 2, this.node.stopAllActions(), this.freeFall()))
            },
            t.prototype.onCollisionEnter = function(e, t) {
                n.GameScene.getInstance().collectCoin(this.value, this.node.position),
                this.destroySelf()
            },
            t.prototype.setInfo = function(e) {
                this.value = e
            },
            t.prototype.destroySelf = function() {
                n.GameScene.getInstance().deleteElementFormCoinPool(this.node),
                this.node.destroy()
            },
            t.prototype.beginDespear = function(e) {
                this.countDispear--,
                this.countDispear <= 0 ? (this.unschedule(this.beginDespear), this.destroySelf()) : 2 == this.countDispear && this.node.runAction(cc.blink(2, 10))
            },
            __decorate([c()], t.prototype, "defaultSpeedX", void 0),
            __decorate([c()], t.prototype, "defaultSpeedY", void 0),
            __decorate([c()], t.prototype, "countDispear", void 0),
            t = __decorate([r], t)
        } (cc.Component);
        o.Coin = s,
        cc._RF.pop()
    },
    {
        "../DataControl": "DataControl",
        "../GameScene": "GameScene"
    }],
    DataControl: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "1b122AT+CVGprjKq76ye59J", "DataControl"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./GameScene"),
        a = e("./GameoverLayout"),
        i = e("./OffLineLayout"),
        r = e("./SavemeLayout"),
        c = e("./BeginLayout"),
        s = e("./GetLipinLayout"),
        l = e("encryptjs");
        cc.NativeCallJSRewardBack = function(e, t) {
            p.watchVideoBack(e, t)
        };
        var h = cc._decorator,
        u = h.ccclass,
        p = (h.property,
        function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getRandomInt = function(e, t) {
                return Math.floor(Math.random() * (t - e + 1) + e)
            },
            t.getRandom = function(e, t) {
                return Math.random() * (t - e) + e
            },
            t.init = function() {
                var e = o.getData("SFX");
                e && "" != e || (e = "1"),
                this.SFXON = "1" == e
            },
            t.initItemLevels = function() {
                for (var e = 0; e < 100; e++) this.ItemLevels[e] = {
                    speed: 6 + 1 * e,
                    damage: 1 + .25 * e,
                    offline1: e + 1 + 1 + Math.pow(1.2, e),
                    offline2: 2500 + (e + 1 + 44) * (e + 1 - 44) * 5,
                    needmoney: 5 + 2 * (e + 1 + 1) * (e + 1) * e + 5 * Math.pow(1.25, e)
                }
            },
            t.storeData = function(e, t) {
                var o = l.encrypt(t, this.dsfsdf, 256);
                cc.sys.localStorage.setItem(e, o)
            },
            t.getData = function(e) {
                var t = cc.sys.localStorage.getItem(e);
                return t && "" != t ? l.decrypt(t, this.dsfsdf, 256) : t
            },
            t.replaceCharAt = function(e, t, o) {
                return e.substr(0, t) + o + e.substr(t + 1, e.length - 1 - t)
            },
            t.checkUnloc = function(e, t) {
                void 0 === t && (t = 0);
                var a = parseInt(o.getData("SCENELOCKNUM" + e));
                if (isNaN(a) && (a = 0), 1 == e || 2 == e) {
                    var i = this.getData("LASTSIGNDATE"),
                    r = 0;
                    if (i && "" != i) {
                        if (!this.isToday(i)) {
                            c = (new Date).toLocaleDateString().replace(/\//g, "");
                            this.storeData("LASTSIGNDATE", c),
                            r++
                        }
                    } else {
                        var c = (new Date).toLocaleDateString().replace(/\//g, "");
                        this.storeData("LASTSIGNDATE", c),
                        r++
                    }
                    a + r == 2 && 2 != a ? n.GameScene.getInstance().showUnlockLayout(e) : a + r == 7 && 7 != a && n.GameScene.getInstance().showUnlockLayout(e),
                    a += r,
                    this.storeData("SCENELOCKNUM" + e, a)
                } else 2 == e || (3 == e ? (1 == ++a && n.GameScene.getInstance().showUnlockLayout(e), this.storeData("SCENELOCKNUM" + e, a)) : 4 == e ? (10 == ++a && n.GameScene.getInstance().showUnlockLayout(e), this.storeData("SCENELOCKNUM" + e, a)) : 5 == e ? a < 5e3 && ((a += t) >= 5e3 && n.GameScene.getInstance().showUnlockLayout(e), this.storeData("SCENELOCKNUM" + e, a)) : 6 == e ? a < 1e4 && ((a += t) >= 1e4 && n.GameScene.getInstance().showUnlockLayout(e), this.storeData("SCENELOCKNUM" + e, a)) : 7 == e && a < 200 && ((a += t) >= 200 && n.GameScene.getInstance().showUnlockLayout(e), this.storeData("SCENELOCKNUM" + e, a)))
            },
            t.isToday = function(e) {
                return e == (new Date).toLocaleDateString().replace(/\//g, "")
            },
            t.vibration = function() {
                console.log("cc.sys.os is " + cc.sys.os + ", android is " + cc.sys.OS_ANDROID),
                cc.sys.os == cc.sys.OS_IOS || (cc.sys.os == cc.sys.OS_ANDROID ? (console.log("AAAAAAAAAAAAAAAAAAAAA"), jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "vibrate", "()V")) : console.log("BBBBBBBBBBBBBBBBBBB"))
            },
            t.exitGame = function() {
                cc.sys.os == cc.sys.OS_IOS || (cc.sys.os == cc.sys.OS_ANDROID ? (console.log("AAAAAAAAAAAAAAAAAAAAA"), jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "exitGame", "()V")) : console.log("BBBBBBBBBBBBBBBBBBB"))
            },
            t.showH5Ads = function(e) {
                this.sceneIndex = e,
                o.H5BANBEN && (console.log("watch h5 video"), QuickAds.showAfg())
            },
            t.initAd = function() {
                o.H5BANBEN ? this.initH5Ad() : cc.sys.os == cc.sys.OS_IOS || (cc.sys.os == cc.sys.OS_ANDROID ? (console.log("AAAAAAAAAAAAAAAAAAAA setBannas"), jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "setBannas", "(Ljava/lang/String;I)V", this.bannerid1, 1)) : console.log("BBBBBBBBBBBBBBBBBBB"))
            },
            t.initH5Ad = function() {
                o.H5BANBEN && (QuickAds.initAfg(), QuickAds.initSkipped(function() {
                    o.H5BANBEN && (0 == o.sceneIndex ? a.GameOverLayout.getInstance().watchVideoBack(!1) : 1 == o.sceneIndex && i.OffLineLayout.getInstance().watchVideoBack(!1))
                }))
            },
            t.testJs = function(e) {
                console.log("lalalalallalalla==============" + e)
            },
            t.watchVideoBack = function(e, t) {
                console.log("playvideo back sceneid " + e + ", result " + t),
                cc.sys.os == cc.sys.OS_IOS || cc.sys.os == cc.sys.OS_ANDROID && (0 == o.sceneIndex ? a.GameOverLayout.getInstance().watchVideoBack(t) : 1 == o.sceneIndex ? i.OffLineLayout.getInstance().watchVideoBack(t) : 2 == o.sceneIndex ? r.SavemeLayout.getInstance().watchVideoBack(t) : 3 == o.sceneIndex ? c.BeginLayout.getInstance().watchVideoBack(t) : 4 == o.sceneIndex ? s.GetLipinLayout.getInstance().watchVideoBack(t) : 5 == o.sceneIndex && s.GetLipinLayout.getInstance().watchVideoBack(t))
            },
            t.showToast = function(e, t) {
                Toast.makeText(e, Toast.LENGTH_SHORT).show(t)
            },
            t.showAd = function(e, t) {
                this.sceneIndex = t,
                o.H5BANBEN || cc.sys.os == cc.sys.OS_IOS || (cc.sys.os == cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "playAd", "(Ljava/lang/String;)V", e) : console.log("BBBBBBBBBBBBBBBBBBB"))
            },
            t.getAdReady = function(e) {
                var t = !1;
                return this.H5BANBEN ? t = !0 : cc.sys.os == cc.sys.OS_IOS || (cc.sys.os == cc.sys.OS_ANDROID ? t = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "adReady", "(Ljava/lang/String;)Z", e) : console.log("BBBBBBBBBBBBBBBBBBB")),
                t
            },
            t.testAward = function() {
                cc.sys.os == cc.sys.OS_IOS || (cc.sys.os == cc.sys.OS_ANDROID ? (console.log("testAwardtestAwardtestAward"), jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "testAward", "(Ljava/lang/String;)V", "49416sfs6a4f6s4f6s4f46sa4f6s")) : console.log("BBBBBBBBBBBBBBBBBBB"))
            },
            t.dsfsdf = "kuge1010sqg",
            t.sceneid1 = "drciYywP1ECT46cyrI0",
            t.sceneid2 = "Y6IkiG0hFkJJz6Q5TdO",
            t.bannerid1 = "y8HnAMmaKm9IJWlBQy0",
            t.sceneIndex = 0,
            t.H5BANBEN = !0,
            t.SFXON = !0,
            t.ItemsValue = [["1.00 ", "1.00 ", "3 ", "0 ", "10 "], ["1.50 ", "1.25 ", "4 ", "0 ", "23 "], ["2.00 ", "1.50 ", "5 ", "0 ", "61 "], ["2.50 ", "1.75 ", "7 ", "0 ", "135 "], ["3.00 ", "2.00 ", "8 ", "0 ", "257 "], ["3.50 ", "2.25 ", "9 ", "0 ", "440 "], ["4.00 ", "2.50 ", "11 ", "0 ", "696 "], ["4.50 ", "2.75 ", "13 ", "0 ", "1037 "], ["5.00 ", "3.00 ", "14 ", "0 ", "1475 "], ["5.50 ", "3.25 ", "16 ", "0 ", "2022 "], ["6.00 ", "3.50 ", "18 ", "0 ", "2692 "], ["6.50 ", "3.75 ", "20 ", "0 ", "3495 "], ["7.00 ", "4.00 ", "23 ", "0 ", "4446 "], ["7.50 ", "4.25 ", "26 ", "0 ", "5556 "], ["8.00 ", "4.50 ", "29 ", "0 ", "6839 "], ["8.50 ", "4.75 ", "32 ", "0 ", "8307 "], ["9.00 ", "5.00 ", "36 ", "0 ", "9975 "], ["9.50 ", "5.25 ", "41 ", "0 ", "11855 "], ["10.00 ", "5.50 ", "47 ", "0 ", "13963 "], ["10.50 ", "5.75 ", "53 ", "0 ", "16312 "], ["11.00 ", "6.00 ", "60 ", "0 ", "18919 "], ["11.50 ", "6.25 ", "69 ", "0 ", "21799 "], ["12.00 ", "6.50 ", "79 ", "0 ", "24971 "], ["12.50 ", "6.75 ", "91 ", "0 ", "28452 "], ["13.00 ", "7.00 ", "105 ", "0 ", "32264 "], ["13.50 ", "7.25 ", "122 ", "0 ", "36428 "], ["14.00 ", "7.50 ", "142 ", "0 ", "40971 "], ["14.50 ", "7.75 ", "166 ", "0 ", "45921 "], ["15.00 ", "8.00 ", "195 ", "0 ", "51310 "], ["15.50 ", "8.25 ", "229 ", "0 ", "57176 "], ["20.50 ", "10.75 ", "1266 ", "0 ", "158018 "], ["21.00 ", "11.00 ", "1512 ", "0 ", "175381 "], ["21.50 ", "11.25 ", "1807 ", "0 ", "195117 "], ["22.00 ", "11.50 ", "2160 ", "0 ", "217708 "], ["22.50 ", "11.75 ", "2585 ", "0 ", "243753 "], ["23.00 ", "12.00 ", "3094 ", "2945 ", "274000 "], ["23.50 ", "12.25 ", "3704 ", "3400 ", "309379 "], ["24.00 ", "12.50 ", "4437 ", "3865 ", "351050 "], ["24.50 ", "12.75 ", "5315 ", "4340 ", "400459 "], ["25.00 ", "13.00 ", "6370 ", "4825 ", "459413 "], ["25.50 ", "13.25 ", "7635 ", "5320 ", "530165 "], ["26.00 ", "13.50 ", "9152 ", "5825 ", "615530 "], ["26.50 ", "13.75 ", "10974 ", "6340 ", "719023 "], ["27.00 ", "14.00 ", "13159 ", "6865 ", "845035 "], ["27.50 ", "14.25 ", "15781 ", "7400 ", "999053 "], ["28.00 ", "14.50 ", "18927 ", "7945 ", "1187930 "], ["28.50 ", "14.75 ", "22702 ", "8500 ", "1420231 "], ["29.00 ", "15.00 ", "27232 ", "9065 ", "1706659 "], ["29.50 ", "15.25 ", "32668 ", "9640 ", "2060591 "], ["30.00 ", "15.50 ", "39190 ", "10225 ", "2498742 "], ["30.50 ", "15.75 ", "47017 ", "10820 ", "3042007 "], ["35.50 ", "18.25 ", "290812 ", "17320 ", "24994518 "], ["40.50 ", "20.75 ", "1800271 ", "24820 ", "227415822 "], ["45.50 ", "23.25 ", "11146395 ", "33320 ", "2109897414 "], ["50.00 ", "25.50 ", "57512582 ", "41825 ", "15711039494 "], ["50.50 ", "25.75 ", "69015080 ", "42820 ", "19638373666 "]],
            t.BallValues = [["1", "1", "2", "3", "4"], ["2", "2", "4", "6", "8"], ["3", "3", "6", "9", "12"], ["4", "4", "8", "12", "16"], ["5", "5", "10", "15", "20"], ["10", "10", "20", "30", "40"], ["20", "20", "40", "60", "80"], ["30", "30", "60", "90", "120"], ["40", "40", "80", "120", "160"], ["50", "50", "100", "150", "200"], ["60", "60", "120", "180", "240"], ["70", "70", "140", "210", "280"], ["80", "80", "160", "240", "320"], ["90", "90", "180", "270", "360"], ["100", "100", "200", "300", "400"], ["120", "120", "240", "360", "480"], ["140", "140", "280", "420", "560"], ["160", "160", "320", "480", "640"], ["180", "180", "360", "540", "720"], ["200", "200", "400", "600", "800"], ["250", "250", "500", "750", "1000"], ["300", "300", "600", "900", "1200"], ["400", "400", "800", "1200", "1600"], ["500", "500", "1000", "1500", "2000"], ["1000", "1000", "2000", "3000", "4000"], ["2000", "2000", "4000", "6000", "8000"], ["5000", "5000", "10000", "15000", "20000"], ["10000", "10000", "20000", "30000", "40000"]],
            t.ItemLevels = [],
            t.BallLevels = [],
            t = o = __decorate([u], t)
        } (cc.Component));
        o.DataControl = p,
        cc._RF.pop()
    },
    {
        "./BeginLayout": "BeginLayout",
        "./GameScene": "GameScene",
        "./GameoverLayout": "GameoverLayout",
        "./GetLipinLayout": "GetLipinLayout",
        "./OffLineLayout": "OffLineLayout",
        "./SavemeLayout": "SavemeLayout",
        encryptjs: "encryptjs"
    }],
    GameScene: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "36c20HpOJBKeqU5DQ7rZGV1", "GameScene"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./prefab/Mortar"),
        a = e("./prefab/Bullet"),
        i = e("./prefab/Ball"),
        r = e("./prefab/Coin"),
        c = e("./DataControl"),
        s = e("./SceneLayout"),
        l = e("./UnlockLayout"),
        h = e("./AudioManager"),
        u = cc._decorator,
        p = u.ccclass,
        d = u.property,
        f = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.myMortar = null,
                t.myBallPrefab = null,
                t.myBulletPrefab = null,
                t.myCoinPrefab = null,
                t.myMortarPrefab = null,
                t.myMortarPrefab1 = null,
                t.myMortarPrefab2 = null,
                t.myMortarPrefab3 = null,
                t.myMortarPrefab4 = null,
                t.myMortarPrefab5 = null,
                t.myMortarPrefab6 = null,
                t.myMortarPrefab7 = null,
                t.dollarPre = null,
                t.myMortarLastX = 0,
                t.star0Pre = null,
                t.blow0Pre = null,
                t.blow0_1Pre = null,
                t.smokePre = null,
                t.beginLayout = null,
                t.saveMeLayout = null,
                t.gameoverLayout = null,
                t.sceneLayout = null,
                t.unlockLayout = null,
                t.offlineLayout = null,
                t.lipinLayout = null,
                t.getLipinLayout = null,
                t.ballPool = [],
                t.bulletPool = [],
                t.coinPool = [],
                t.layelAtlas1 = null,
                t.myCoinsLabel = null,
                t.mycoins = 0,
                t.myScores = 0,
                t.currentCoins = 0,
                t.currentBallBreak = 0,
                t.myMostScores = 0,
                t.currentOffline = 0,
                t.ballTop = 300,
                t.ballBottom = -300,
                t.mortarType = 0,
                t.bgNode = null,
                t.imglipindrop = null,
                t.mortarSpeedLevel = 0,
                t.bulletDemageLevel = 0,
                t.offlineLevel = 0,
                t.myScoreLabel = null,
                t.gameAtlas = null,
                t.unluckAtlas = null,
                t.threshold = [100, 1e3],
                t.thresholdPass = [0, 0],
                t.testSpeed = 0,
                t.testPower = 0,
                t.bg1 = null,
                t.bg2 = null,
                t.currentSceneIndex = 0,
                t.quitLayout = null,
                t.blowNodePool = null,
                t.getRealDollar = 0,
                t.allRealDollar = 0,
                t.createLipinInThisGame = !1,
                t.lipHoldInThisGame = 0,
                t.createRealDollarNumInThisGame = 0,
                t.imgCloud1 = null,
                t.imgCloud2 = null,
                t.imgCloud3 = null,
                t.lastPressBackTime = 0,
                t.canTouch = !1,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.onEnable = function() {
                console.log("gamescene onEnable")
            },
            t.prototype.onLoad = function() {
                console.log("gamescene onload"),
                cc.director.getPhysicsManager().enabled = !0,
                o.myInstance = this,
                this.beginLayout.node.zIndex = 50,
                c.DataControl.initItemLevels(),
                this.initLoacalData(),
                this.setLabels(),
                this.canTouch = !0,
                this.bindTouchListener(),
                cc.sys.os == cc.sys.OS_ANDROID && cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.keyDown, this)
            },
            t.prototype.keyDown = function(e) {
                if (e.keyCode == cc.macro.KEY.back) {
                    var t = new Date;
                    t.getTime() - this.lastPressBackTime > 300 && (this.lastPressBackTime = t.getTime(), console.log("keyback===================="), this.quitLayout.node.active ? this.quitLayout.node.active = !1 : this.quitLayout.node.active = !0)
                }
            },
            t.prototype.setCollider = function(e) {
                cc.director.getCollisionManager().enabled = e
            },
            t.prototype.saveMeToContinue = function() {
                this.saveMeLayout.node.active = !1,
                this.beginLayout.node.active = !1,
                this.canTouch = !0,
                this.setCollider(!0),
                this.schedule(this.checkBallPool, 1.5, cc.macro.REPEAT_FOREVER, -1)
            },
            t.prototype.start = function() {
                c.DataControl.checkUnloc(1);
                var e = parseInt(c.DataControl.getData("CURRENTSCENEINDEX"));
                isNaN(e) && (e = 0),
                this.currentSceneIndex = e,
                c.DataControl.storeData("CURRENTSCENEINDEX", this.currentSceneIndex),
                s.SceneLayout.getIsRandom() && (this.currentSceneIndex = s.SceneLayout.getRandomIndex(), c.DataControl.storeData("CURRENTSCENEINDEX", this.currentSceneIndex)),
                this.initScene(),
                this.checkOffline(),
                this.preloadAudio(),
                cc.game.on(cc.game.EVENT_HIDE, this.leaveGameToBackground, this),
                cc.game.on(cc.game.EVENT_SHOW, this.enterGameFromBackground, this);
                var t = cc.winSize;
                this.imgCloud1.runAction(cc.repeatForever(cc.sequence(cc.moveTo(30, cc.v2(t.width / 2 + this.imgCloud1.width / 2, this.imgCloud1.y)), cc.delayTime(2), cc.moveTo(35, cc.v2( - t.width / 2 - this.imgCloud1.width / 2, this.imgCloud1.y)), cc.delayTime(2)))),
                this.imgCloud2.runAction(cc.repeatForever(cc.sequence(cc.moveTo(45, cc.v2( - t.width / 2 - this.imgCloud2.width / 2, this.imgCloud2.y)), cc.delayTime(2.5), cc.moveTo(40, cc.v2(t.width / 2 + this.imgCloud2.width / 2, this.imgCloud2.y)), cc.delayTime(2)))),
                this.imgCloud3.runAction(cc.repeatForever(cc.sequence(cc.moveTo(35, cc.v2( - t.width / 2 - this.imgCloud3.width / 2, this.imgCloud3.y)), cc.delayTime(2.5), cc.moveTo(40, cc.v2(t.width / 2 + this.imgCloud3.width / 2, this.imgCloud3.y)), cc.delayTime(3)))),
                c.DataControl.showAd(c.DataControl.bannerid1, -1)
            },
            t.prototype.onDestroy = function() {
                this.unBindTouchListener(),
                cc.sys.os == cc.sys.OS_ANDROID && cc.systemEvent.off(cc.SystemEvent.EventType.KEY_DOWN, this.keyDown, this)
            },
            t.prototype.preloadAudio = function() {
                h.AudioManager.reLoadRes(this.loadSfxCompelete, this)
            },
            t.prototype.loadSfxCompelete = function(e) {
                0 == e ? console.log("loadSfxCompelete") : console.log("loadSfxError")
            },
            t.prototype.gameTouchStart = function(e) {
                this.beginLayout.node.active && (this.beginLayout.node.active = !1, this.reStartGame()),
                this.canTouch && this.myMortar.getComponent(n.Mortar).beginFire()
            },
            t.prototype.gameTouchMove = function(e) {
                if (this.canTouch) {
                    var t = e.getLocation(),
                    o = this.node.convertToNodeSpaceAR(t),
                    a = o.x - this.myMortarLastX;
                    this.myMortar.getComponent(n.Mortar).moveByDistance(a),
                    this.myMortar.x = o.x,
                    this.myMortarLastX = o.x
                }
            },
            t.prototype.gameTouchEnd = function(e) {
                this.canTouch && this.myMortar.getComponent(n.Mortar).stopFire()
            },
            t.prototype.initFileData = function() {
                c.DataControl.initItemLevels()
            },
            t.prototype.initLoacalData = function() {
                var e = parseInt(c.DataControl.getData("COIN"));
                isNaN(e) && (e = 0),
                this.mycoins = 999999999999,
                e = parseInt(c.DataControl.getData("SPEED")),
                isNaN(e) && (e = 0),
                this.mortarSpeedLevel = e,
                e = parseInt(c.DataControl.getData("DEMAGE")),
                isNaN(e) && (e = 0),
                this.bulletDemageLevel = e,
                e = parseInt(c.DataControl.getData("OFFLINE")),
                isNaN(e) && (e = 0),
                this.offlineLevel = e,
                e = parseInt(c.DataControl.getData("MYDOLLAR")),
                isNaN(e) && (e = 0),
                this.allRealDollar = e,
                e = parseInt(c.DataControl.getData("MYMOSTSCORES")),
                isNaN(e) && (e = 0),
                this.myMostScores = e,
                this.myScores = 0,
                this.currentCoins = 0,
                this.currentBallBreak = 0,
                this.thresholdPass = [0, 0],
                this.currentOffline = 0,
                this.getRealDollar = 0,
                this.createLipinInThisGame = !1,
                this.lipHoldInThisGame = 0,
                this.createRealDollarNumInThisGame = 0,
                this.imglipindrop.active = !1,
                this.setCantouch(!0),
                (e = this.myMostScores) < 50 && (e = 50),
                this.allRealDollar > 90 ? this.createLipinInThisGame = !0 : this.allRealDollar > 80 ? (this.lipHoldInThisGame = c.DataControl.getRandom(Math.ceil(1.5 * e), Math.ceil(3 * e)), this.createRealDollarNumInThisGame = parseFloat(c.DataControl.getRandom(.1, 1).toFixed(2))) : this.allRealDollar > 50 ? (this.lipHoldInThisGame = c.DataControl.getRandom(Math.ceil(.8 * e), Math.ceil(1.5 * e)), this.createRealDollarNumInThisGame = parseFloat(c.DataControl.getRandom(.3, 2).toFixed(2))) : this.allRealDollar > 30 ? (this.lipHoldInThisGame = c.DataControl.getRandom(Math.ceil(.5 * e), Math.ceil(e)), this.createRealDollarNumInThisGame = parseFloat(c.DataControl.getRandom(.5, 3).toFixed(2))) : (this.lipHoldInThisGame = c.DataControl.getRandom(Math.ceil(.1 * e), Math.ceil(e)), this.createRealDollarNumInThisGame = parseFloat(c.DataControl.getRandom(1, 5).toFixed(2))),
                console.log("createRealDollarNumInThisGame is " + this.createRealDollarNumInThisGame)
            },
            t.prototype.setLabels = function() {},
            t.prototype.reStartGame = function() {
                this.clearBalls(),
                this.clearBullets(),
                this.clearCoins(),
                this.setCollider(!0),
                this.initLoacalData(),
                this.reloadMortarLocation(),
                this.checkBallPool( - 1),
                this.schedule(this.checkBallPool, 1.5, cc.macro.REPEAT_FOREVER, -1),
                this.setLabels()
            },
            t.prototype.reloadMortarLocation = function() {
                this.myMortar.setPosition(0, -300)
            },
            t.prototype.initScene = function() {
                this.myMortar && this.myMortar.removeFromParent(!0),
                0 == this.currentSceneIndex ? this.myMortar = cc.instantiate(this.myMortarPrefab) : 1 == this.currentSceneIndex ? this.myMortar = cc.instantiate(this.myMortarPrefab1) : 2 == this.currentSceneIndex ? this.myMortar = cc.instantiate(this.myMortarPrefab2) : 3 == this.currentSceneIndex ? this.myMortar = cc.instantiate(this.myMortarPrefab3) : 4 == this.currentSceneIndex ? this.myMortar = cc.instantiate(this.myMortarPrefab4) : 5 == this.currentSceneIndex ? this.myMortar = cc.instantiate(this.myMortarPrefab5) : 6 == this.currentSceneIndex ? this.myMortar = cc.instantiate(this.myMortarPrefab6) : 7 == this.currentSceneIndex && (this.myMortar = cc.instantiate(this.myMortarPrefab7)),
                this.myMortar.setPosition(0, -300),
                this.node.addChild(this.myMortar, 1),
                this.myMortar.getComponent(n.Mortar).setInfo(this.mortarSpeedLevel),
                this.myMortar.getComponent(n.Mortar).setType(this.mortarType),
                this.addSPritePic(this.bg1.getComponent(cc.Sprite), "bg" + this.currentSceneIndex),
                this.addSPritePic(this.bg2.getComponent(cc.Sprite), "bg" + this.currentSceneIndex + "_0")
            },
            t.prototype.addSPritePic = function(e, t) {
                cc.loader.loadRes(t, cc.SpriteFrame,
                function(t, o) {
                    t ? console.log("error is " + t) : e.spriteFrame = o
                })
            },
            t.prototype.clearBullets = function() {
                for (var e = 0; e < this.bulletPool.length; e++) {
                    this.bulletPool[e].removeFromParent(!0)
                }
                this.bulletPool.splice(0, this.bulletPool.length)
            },
            t.prototype.clearBalls = function() {
                for (var e = 0; e < this.ballPool.length; e++) {
                    this.ballPool[e].removeFromParent(!0)
                }
                this.ballPool.splice(0, this.ballPool.length)
            },
            t.prototype.clearCoins = function() {
                for (var e = 0; e < this.coinPool.length; e++) {
                    this.coinPool[e].removeFromParent(!0)
                }
                this.coinPool.splice(0, this.coinPool.length)
            },
            t.prototype.bindTouchListener = function() {
                this.node.on(cc.Node.EventType.TOUCH_START, this.gameTouchStart, this),
                this.node.on(cc.Node.EventType.TOUCH_MOVE, this.gameTouchMove, this),
                this.node.on(cc.Node.EventType.TOUCH_END, this.gameTouchEnd, this)
            },
            t.prototype.unBindTouchListener = function() {
                this.node.off(cc.Node.EventType.TOUCH_START, this.gameTouchStart, this),
                this.node.off(cc.Node.EventType.TOUCH_MOVE, this.gameTouchMove, this),
                this.node.off(cc.Node.EventType.TOUCH_END, this.gameTouchEnd, this)
            },
            t.prototype.endGame = function() {
                this.clearBullets(),
                this.setCollider(!1),
                c.DataControl.H5BANBEN ? this.showGameOver() : c.DataControl.getAdReady(c.DataControl.sceneid1) ? this.showSaveMe() : this.showGameOver(),
                this.unschedule(this.checkBallPool)
            },
            t.prototype.upGradeSpeed = function() {},
            t.prototype.upGradePower = function() {},
            t.prototype.upGradeOffLine = function() {},
            t.prototype.createBullet = function(e) {
                for (var t = Math.floor(this.mortarSpeedLevel / 30) + 1, o = Math.floor(t / 2), n = 0; n < t; n++) {
                    var i = cc.instantiate(this.myBulletPrefab);
                    i.setPosition(this.myMortar.position.x + 20 * (n - o) + (t % 2 == 0 ? 10 : 0), this.myMortar.position.y + this.myMortar.getContentSize().height / 2),
                    this.node.addChild(i, 3),
                    i.getComponent(a.Bullet).setInfo(this.bulletDemageLevel),
                    i.getComponent(a.Bullet).startFly(),
                    this.bulletPool.push(i)
                }
            },
            t.prototype.createParticle = function(e) {
                var t = cc.instantiate(this.star0Pre);
                t.setPosition(e),
                this.node.addChild(t, 20)
            },
            t.prototype.createSmoke = function(e) {
                var t = cc.instantiate(this.smokePre);
                t.setPosition(e),
                this.node.addChild(t, 20)
            },
            t.prototype.createBlow = function(e, t) {
                var o = cc.instantiate(this.blow0Pre);
                o.setPosition(t);
                var n = 1;
                switch (e) {
                case 0:
                    n = .375;
                    break;
                case 1:
                    n = .47;
                    break;
                case 2:
                    n = .65;
                    break;
                case 3:
                default:
                    n = 1
                }
                o.setScale(n),
                this.node.addChild(o, 20);
                var a = cc.instantiate(this.blow0_1Pre);
                a.setPosition(t),
                a.setScale(n),
                this.node.addChild(a, 20)
            },
            t.prototype.createBallsOrg = function() {
                var e = cc.instantiate(this.myBallPrefab);
                this.node.addChild(e, 2);
                var t = this.getBallInfo(!1);
                e.getComponent(i.Ball).setInfo(t.type, t.ballNumber, t.color, this.currentSceneIndex),
                this.ballPool.push(e),
                e.getComponent(i.Ball).beginToMove()
            },
            t.prototype.createBallsOrgInhold = function(e) {
                var t = cc.instantiate(this.myBallPrefab);
                this.node.addChild(t, 2);
                var o = this.getBallInfo(!1, 0, 0, !0, e);
                t.getComponent(i.Ball).setInfo(o.type, o.ballNumber, o.color, this.currentSceneIndex),
                this.ballPool.push(t),
                t.getComponent(i.Ball).beginToMove()
            },
            t.prototype.createBallsWhenSplit = function(e, t, o) {
                if (! (e <= 0)) {
                    if (4 == e) {
                        this.getRealDollar = this.createRealDollarNumInThisGame;
                        var n = new cc.Node;
                        return n.addComponent(cc.Sprite).spriteFrame = this.gameAtlas.getSpriteFrame("lipindrop"),
                        n.zIndex = 10,
                        this.node.addChild(n),
                        void n.runAction(cc.sequence(cc.moveTo(.5, this.imglipindrop.position), cc.callFunc(this.showImgDropLip, this), cc.removeSelf()))
                    }
                    e--;
                    var a = this.getBallInfo(!0, o / 2, e),
                    r = cc.instantiate(this.myBallPrefab);
                    this.node.addChild(r, 2),
                    r.getComponent(i.Ball).setInfo(a.type, a.ballNumber, a.color, this.currentSceneIndex),
                    this.ballPool.push(r),
                    r.getComponent(i.Ball).beginToMoveFromSplit(0, t);
                    r = cc.instantiate(this.myBallPrefab);
                    this.node.addChild(r, 2),
                    r.getComponent(i.Ball).setInfo(a.type, a.ballNumber, a.color, this.currentSceneIndex),
                    this.ballPool.push(r),
                    r.getComponent(i.Ball).beginToMoveFromSplit(1, t)
                }
            },
            t.prototype.getBallInfo = function(e, t, o, n, a) {
                void 0 === t && (t = 0),
                void 0 === o && (o = 0),
                void 0 === n && (n = !1),
                void 0 === a && (a = 0);
                var i = this.myScores <= 0 ? 1 : this.myScores,
                r = c.DataControl.getRandomInt(1, 100),
                s = 0;
                if (s = r <= 30 ? 0 : r <= 72 ? 1 : r <= 92 ? 2 : 3, !c.DataControl.H5BANBEN && !this.createLipinInThisGame && !e && !n && this.myScores >= this.lipHoldInThisGame) return this.createLipinInThisGame = !0,
                s = 4,
                console.log("==========cratelip"),
                {
                    type: s,
                    ballNumber: 1,
                    color: 0
                };
                var l = 0;
                l = s <= 0 ? c.DataControl.getRandom(3, 4) : c.DataControl.getRandom(2, 3),
                n && (l = 0, l = s <= 0 ? 4 : 2);
                var h = Math.floor(Math.sqrt(i) * l);
                e && (h = t, s = o),
                h < 1 && (h = 1);
                return {
                    type: s,
                    ballNumber: h,
                    color: h <= 5 ? 0 : h <= 10 ? 0 : s <= 0 ? h >= Math.floor(3.7 * Math.sqrt(i)) ? 4 : h >= Math.floor(3.3 * Math.sqrt(i)) ? 3 : h >= Math.floor(3 * Math.sqrt(i)) ? 2 : h >= Math.floor(1.8 * Math.sqrt(i)) ? 1 : 0 : h >= Math.floor(2.7 * Math.sqrt(i)) ? 4 : h >= Math.floor(2.3 * Math.sqrt(i)) ? 3 : h >= Math.floor(2 * Math.sqrt(i)) ? 2 : h >= Math.floor(1.3 * Math.sqrt(i)) ? 1 : 0
                }
            },
            t.prototype.createCoin = function(e, t) {
                var o = cc.instantiate(this.myCoinPrefab);
                o.setPosition(e),
                this.node.addChild(o, 3),
                o.getComponent(r.Coin).setInfo(t),
                o.getComponent(r.Coin).beginToMove(),
                this.coinPool.push(o)
            },
            t.prototype.collectCoin = function(e, t) {
                h.AudioManager.playEffect(h.AudioManager.getcoin1);
                var o = cc.instantiate(this.dollarPre);
                o.setPosition(t),
                o.getChildByName("Label").getComponent(cc.Label).string = e + "",
                this.node.addChild(o, 10),
                o.runAction(cc.blink(1, 5)),
                o.runAction(cc.sequence(cc.moveBy(1, cc.v2(0, 75)), cc.removeSelf())),
                this.addCoins(e)
            },
            t.prototype.addCoins = function(e) {
                this.currentCoins += e,
                this.setLabels()
            },
            t.prototype.addPoints = function(e) {
                this.myScores += e,
                this.myMostScores += e,
                this.setLabels(),
                this.checkThreshold()
            },
            t.prototype.checkThreshold = function() {
                for (var e = this.threshold.length - 1; e >= 0; e--) {
                    var t = this.threshold[e];
                    if (this.myScores >= t) return void(0 == this.thresholdPass[e] && (console.log("\u68c0\u6d4b\u5230\u4e86\u9608\u503c " + t + ", i is " + e + ", scores is " + this.myScores), this.thresholdPass[e] = 1, this.unschedule(this.checkBallPool), this.createBallsOrgInhold(e), this.schedule(this.checkBallPool, 1.5, cc.macro.REPEAT_FOREVER, -1)))
                }
            },
            t.prototype.checkBallPool = function(e) {
                this.ballPool.length < 3 && this.createBallsOrg()
            },
            t.prototype.deleteElementFormBallPool = function(e) {
                var t = this.ballPool.length;
                if (t > 0) {
                    for (var o = !1,
                    n = 0; n < t; n++) if (this.ballPool[n] == e) return this.ballPool.splice(n, 1),
                    void(o = !0);
                    o || console.log("deletefalse1")
                } else console.log("deletefalse2")
            },
            t.prototype.deleteElementFormBulletPool = function(e) {
                var t = this.bulletPool.length;
                if (t > 0) for (var o = 0; o < t; o++) if (this.bulletPool[o] == e) return void this.bulletPool.splice(o, 1)
            },
            t.prototype.deleteElementFormCoinPool = function(e) {
                var t = this.coinPool.length;
                if (t > 0) for (var o = 0; o < t; o++) if (this.coinPool[o] == e) return void this.coinPool.splice(o, 1)
            },
            t.prototype.pauseBall = function() {
                var e = this.ballPool.length;
                if (e > 0) for (var t = 0; t < e; t++) this.ballPool[t].pauseAllActions();
                cc.director.getPhysicsManager().enabled = !1,
                this.unschedule(this.checkBallPool)
            },
            t.prototype.resumeBall = function() {
                var e = this.ballPool.length;
                if (e > 0) for (var t = 0; t < e; t++) this.ballPool[t].resumeAllActions();
                cc.director.getPhysicsManager().enabled = !0,
                this.unschedule(this.checkBallPool)
            },
            t.prototype.showSaveMe = function() {
                this.saveMeLayout.node.active = !0
            },
            t.prototype.showGameOver = function() {
                this.imglipindrop.active = !1;
                var e = parseInt(c.DataControl.getData("LPDS"));
                isNaN(e) && (e = -1);
                var t = e,
                o = new Date;
                console.log("mydata is " + o.getTime() / 1e3);
                var n = o.getTime() / 1e3;
                t < n && (console.log("store lpds is " + n), c.DataControl.storeData("LPDS", n)),
                c.DataControl.storeData("MYMOSTSCORES", this.myMostScores + ""),
                c.DataControl.checkUnloc(4),
                c.DataControl.checkUnloc(5, this.currentCoins),
                c.DataControl.checkUnloc(6, this.currentBallBreak),
                this.gameoverLayout.node.active = !0,
                this.getRealDollar > 0 && this.node.runAction(cc.sequence(cc.delayTime(0), cc.callFunc(this.showGetLipinLayout, this)))
            },
            t.prototype.showBeginLayout = function() {
                this.clearBalls(),
                this.clearBullets(),
                this.clearCoins(),
                this.beginLayout.node.active = !0,
                this.reloadMortarLocation(),
                s.SceneLayout.getIsRandom() && (this.currentSceneIndex = s.SceneLayout.getRandomIndex(), c.DataControl.storeData("CURRENTSCENEINDEX", this.currentSceneIndex), this.initScene())
            },
            t.prototype.showSceneLayout = function() {
                this.sceneLayout.node.active = !0,
                s.SceneLayout.getInstance().showLayout1()
            },
            t.prototype.showLipinLayout = function() {
                this.lipinLayout.node.active = !0
            },
            t.prototype.showGetLipinLayout = function() {
                this.getLipinLayout.node.active = !0
            },
            t.prototype.showUnlockLayout = function(e) {
                console.log("showUnlockLayout========= " + e),
                this.unlockLayout.node.active = !0,
                l.UnlockLayout.getInstance().setInfo(e),
                this.currentSceneIndex = e,
                c.DataControl.storeData("CURRENTSCENEINDEX", this.currentSceneIndex),
                this.initScene()
            },
            t.prototype.shakeBg = function() {
                c.DataControl.vibration(),
                this.bgNode.runAction(cc.repeat(cc.sequence(cc.moveBy(.02, cc.v2(20, 20)), cc.moveBy(.02, cc.v2( - 30, -30)), cc.moveBy(.01, cc.v2(10, 10))), 3))
            },
            t.prototype.shakeBg1 = function() {
                this.bgNode.runAction(cc.sequence(cc.moveBy(.02, cc.v2(0, 5)), cc.moveBy(.02, cc.v2(0, -10)), cc.moveBy(.01, cc.v2(0, 5))))
            },
            t.prototype.leaveGameToBackground = function() {
                console.log("left game====");
                var e = parseInt(c.DataControl.getData("LPDS"));
                isNaN(e) && (e = -1);
                var t = e,
                o = new Date;
                console.log("mydata is " + o.getTime() / 1e3);
                var n = o.getTime() / 1e3;
                t < n && (console.log("store lpds is " + n), c.DataControl.storeData("LPDS", n)),
                cc.director.pause()
            },
            t.prototype.enterGameFromBackground = function() {
                console.log("enter game again===="),
                this.currentOffline = 0,
                this.checkOffline()
            },
            t.prototype.checkOffline = function() {
                var e = parseInt(c.DataControl.getData("LPDS"));
                if (isNaN(e) && (e = -1), console.log("initmap lastPd is " + e), -1 != e) {
                    var t = e,
                    o = (new Date).getTime() / 1e3,
                    n = o - t;
                    n < 60 ? (cc.director.resume(), console.log("\u65e0\u6536\u76ca")) : (console.log("\u6709\u6536\u76ca"), n > 7200 && (n = 7200), console.log("\u79bb\u7ebf\u79d2\u6570 \uff1a " + n + ", \u79bb\u7ebflevel " + this.offlineLevel), this.offlineLevel < 44 ? this.currentOffline = Math.floor(Math.floor(n / 60) * c.DataControl.ItemLevels[this.offlineLevel].offline1) : this.currentOffline = Math.floor(Math.floor(n / 60) * c.DataControl.ItemLevels[this.offlineLevel].offline2), this.offlineLayout.node.active = !0, c.DataControl.storeData("LPDS", o))
                }
            },
            t.prototype.showImgDropLip = function() {
                this.imglipindrop.active = !0,
                this.imglipindrop.runAction(cc.sequence(cc.scaleTo(.1, 1.1), cc.scaleTo(.1, 1)))
            },
            t.prototype.setCantouch = function(e) {
                this.canTouch = e
            },
            t.myInstance = null,
            __decorate([d(cc.Node)], t.prototype, "myMortar", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myBallPrefab", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myBulletPrefab", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myCoinPrefab", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab1", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab2", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab3", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab4", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab5", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab6", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "myMortarPrefab7", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "dollarPre", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "star0Pre", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "blow0Pre", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "blow0_1Pre", void 0),
            __decorate([d(cc.Prefab)], t.prototype, "smokePre", void 0),
            __decorate([d(cc.Layout)], t.prototype, "beginLayout", void 0),
            __decorate([d(cc.Layout)], t.prototype, "saveMeLayout", void 0),
            __decorate([d(cc.Layout)], t.prototype, "gameoverLayout", void 0),
            __decorate([d(cc.Layout)], t.prototype, "sceneLayout", void 0),
            __decorate([d(cc.Layout)], t.prototype, "unlockLayout", void 0),
            __decorate([d(cc.Layout)], t.prototype, "offlineLayout", void 0),
            __decorate([d(cc.Layout)], t.prototype, "lipinLayout", void 0),
            __decorate([d(cc.Layout)], t.prototype, "getLipinLayout", void 0),
            __decorate([d(cc.Font)], t.prototype, "layelAtlas1", void 0),
            __decorate([d(cc.Label)], t.prototype, "myCoinsLabel", void 0),
            __decorate([d()], t.prototype, "ballTop", void 0),
            __decorate([d(cc.Node)], t.prototype, "bgNode", void 0),
            __decorate([d(cc.Node)], t.prototype, "imglipindrop", void 0),
            __decorate([d()], t.prototype, "mortarSpeedLevel", void 0),
            __decorate([d()], t.prototype, "bulletDemageLevel", void 0),
            __decorate([d()], t.prototype, "offlineLevel", void 0),
            __decorate([d(cc.Label)], t.prototype, "myScoreLabel", void 0),
            __decorate([d(cc.SpriteAtlas)], t.prototype, "gameAtlas", void 0),
            __decorate([d(cc.SpriteAtlas)], t.prototype, "unluckAtlas", void 0),
            __decorate([d()], t.prototype, "testSpeed", void 0),
            __decorate([d()], t.prototype, "testPower", void 0),
            __decorate([d(cc.Node)], t.prototype, "bg1", void 0),
            __decorate([d(cc.Node)], t.prototype, "bg2", void 0),
            __decorate([d()], t.prototype, "currentSceneIndex", void 0),
            __decorate([d(cc.Layout)], t.prototype, "quitLayout", void 0),
            __decorate([d(cc.Node)], t.prototype, "imgCloud1", void 0),
            __decorate([d(cc.Node)], t.prototype, "imgCloud2", void 0),
            __decorate([d(cc.Node)], t.prototype, "imgCloud3", void 0),
            t = o = __decorate([p], t)
        } (cc.Component);
        o.GameScene = f,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./DataControl": "DataControl",
        "./SceneLayout": "SceneLayout",
        "./UnlockLayout": "UnlockLayout",
        "./prefab/Ball": "Ball",
        "./prefab/Bullet": "Bullet",
        "./prefab/Coin": "Coin",
        "./prefab/Mortar": "Mortar"
    }],
    GameoverLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "6c113MODFBJd4UCZsvpYbgb", "GameoverLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./GameScene"),
        a = e("./AudioManager"),
        i = e("./DataControl"),
        r = e("./BeginLayout"),
        c = cc._decorator,
        s = c.ccclass,
        l = c.property,
        h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.labelScore = null,
                t.labelTop = null,
                t.dollar = null,
                t.btnWatchVideo = null,
                t.countNoVideo = 0,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.start = function() {
                this.node.zIndex = 50,
                this.countNoVideo = 0
            },
            t.prototype.onEnable = function() {
                this.setLabels(),
                this.schedule(this.mesuareLabel, .1, 1, 0),
                i.DataControl.getAdReady(i.DataControl.sceneid1) ? (this.btnWatchVideo.interactable = !0, this.btnWatchVideo.enabled = !0) : (this.btnWatchVideo.interactable = !1, this.btnWatchVideo.enabled = !1)
            },
            t.prototype.onDisable = function() {},
            t.prototype.setLabels = function() {
                this.labelScore.string = n.GameScene.getInstance().currentCoins + "",
                this.labelTop.string = n.GameScene.getInstance().mycoins + ""
            },
            t.prototype.mesuareLabel = function(e) {
                this.dollar.x = this.labelTop.node.x - this.labelTop.node.width / 2 - 10
            },
            t.prototype.onLoad = function() {
                o.myInstance = this
            },
            t.prototype.setTopLabel = function() {
                this.labelTop.string = n.GameScene.getInstance().mycoins + "",
                this.labelTop.node.runAction(cc.sequence(cc.scaleTo(.1, 1.2), cc.scaleTo(.1, 1), cc.callFunc(this.mesuareLabel, this), cc.callFunc(this.closeSelf, this)))
            },
            t.prototype.touchListener = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                this.node.active = !1,
                n.GameScene.getInstance().showBeginLayout()
            },
            t.prototype.closeSelf = function() {
                this.node.active = !1,
                n.GameScene.getInstance().showBeginLayout()
            },
            t.prototype.collectClick = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                n.GameScene.getInstance().mycoins += n.GameScene.getInstance().currentCoins,
                i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins),
                this.setTopLabel(),
                this.checkCountNoVideo()
            },
            t.prototype.watchVideo = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                i.DataControl.H5BANBEN ? (n.GameScene.getInstance().mycoins += 2 * n.GameScene.getInstance().currentCoins, i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins), i.DataControl.showH5Ads(0), this.setTopLabel()) : i.DataControl.showAd(i.DataControl.sceneid1, 0),
                this.countNoVideo = 0,
                i.DataControl.showToast("Watching video to get double reward!", 60)
            },
            t.prototype.watchVideoBack = function(e) {
                e ? i.DataControl.H5BANBEN || (n.GameScene.getInstance().mycoins += 2 * n.GameScene.getInstance().currentCoins, i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins), this.setTopLabel()) : (console.log("cancel watch video"), i.DataControl.H5BANBEN && (n.GameScene.getInstance().mycoins -= n.GameScene.getInstance().currentCoins, i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins), r.BeginLayout.getInstance().setTopLabel()), i.DataControl.showToast("Exit and give up the double reward!", 60))
            },
            t.prototype.checkCountNoVideo = function() {
                this.countNoVideo++,
                this.countNoVideo >= 3 && i.DataControl.getAdReady(i.DataControl.sceneid2) && (i.DataControl.showAd(i.DataControl.sceneid2, -1), this.countNoVideo = 0, console.log("show no video ad"))
            },
            t.myInstance = null,
            __decorate([l(cc.Label)], t.prototype, "labelScore", void 0),
            __decorate([l(cc.Label)], t.prototype, "labelTop", void 0),
            __decorate([l(cc.Node)], t.prototype, "dollar", void 0),
            __decorate([l(cc.Button)], t.prototype, "btnWatchVideo", void 0),
            t = o = __decorate([s], t)
        } (cc.Component);
        o.GameOverLayout = h,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./BeginLayout": "BeginLayout",
        "./DataControl": "DataControl",
        "./GameScene": "GameScene"
    }],
    GetLipinLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "e6d40fWCKxA7LOol3MYU1Za", "GetLipinLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./GameScene"),
        a = e("./AudioManager"),
        i = e("./DataControl"),
        r = cc._decorator,
        c = r.ccclass,
        s = r.property,
        l = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.label = null,
                t.freeLayout = null,
                t.watchLayout = null,
                t.btnWatchVideo1 = null,
                t.btnWatchVideo2 = null,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.onEnable = function() {
                this.label.string = n.GameScene.getInstance().getRealDollar + "",
                i.DataControl.getRandomInt(0, 50) < 50 ? (this.freeLayout.node.active = !0, this.watchLayout.node.active = !1) : (this.freeLayout.node.active = !1, this.watchLayout.node.active = !0),
                i.DataControl.getAdReady(i.DataControl.sceneid1) ? (this.btnWatchVideo1.interactable = !0, this.btnWatchVideo1.enabled = !0, this.btnWatchVideo2.interactable = !0, this.btnWatchVideo2.enabled = !0) : (this.btnWatchVideo1.interactable = !1, this.btnWatchVideo1.enabled = !1, this.btnWatchVideo2.interactable = !1, this.btnWatchVideo2.enabled = !1)
            },
            t.prototype.onLoad = function() {
                o.myInstance = this
            },
            t.prototype.start = function() {
                this.node.zIndex = 51,
                this.node.on(cc.Node.EventType.TOUCH_START, this.tksClick, this)
            },
            t.prototype.touchListener = function() {
                this.node.active = !1
            },
            t.prototype.collectClick = function(e) {
                a.AudioManager.playEffect(a.AudioManager.levelup);
                var t = parseInt(i.DataControl.getData("MYDOLLAR"));
                isNaN(t) && (t = 0),
                i.DataControl.storeData("MYDOLLAR", t + n.GameScene.getInstance().getRealDollar + ""),
                this.node.active = !1
            },
            t.prototype.collectClick2 = function(e) {
                a.AudioManager.playEffect(a.AudioManager.levelup),
                i.DataControl.showAd(i.DataControl.sceneid1, 4)
            },
            t.prototype.collectClick3 = function(e) {
                a.AudioManager.playEffect(a.AudioManager.levelup),
                i.DataControl.showAd(i.DataControl.sceneid1, 5)
            },
            t.prototype.tksClick = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                this.node.active = !1
            },
            t.prototype.watchVideoBack = function(e) {
                if (e) if (i.DataControl.H5BANBEN);
                else {
                    var t = parseInt(i.DataControl.getData("MYDOLLAR"));
                    isNaN(t) && (t = 0),
                    i.DataControl.storeData("MYDOLLAR", t + 2 * n.GameScene.getInstance().getRealDollar + "")
                } else console.log("cancel watch video"),
                i.DataControl.H5BANBEN,
                i.DataControl.showToast("Exit and give up the double reward!", 60)
            },
            t.myInstance = null,
            __decorate([s(cc.Label)], t.prototype, "label", void 0),
            __decorate([s(cc.Layout)], t.prototype, "freeLayout", void 0),
            __decorate([s(cc.Layout)], t.prototype, "watchLayout", void 0),
            __decorate([s(cc.Button)], t.prototype, "btnWatchVideo1", void 0),
            __decorate([s(cc.Button)], t.prototype, "btnWatchVideo2", void 0),
            t = o = __decorate([c], t)
        } (cc.Component);
        o.GetLipinLayout = l,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./DataControl": "DataControl",
        "./GameScene": "GameScene"
    }],
    LipinLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "d1b4eFy1q9PfZ8IUzkQ1HiD", "LipinLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./DataControl"),
        a = e("./AudioManager"),
        i = cc._decorator,
        r = i.ccclass,
        c = i.property,
        s = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.dollarlabel = null,
                t.tipImg = null,
                t.leftLabel = null,
                t.dollar = 0,
                t
            }
            return __extends(t, e),
            t.prototype.onEnable = function() {
                var e = n.DataControl.getData("MYDOLLAR");
                e && "" != e || (e = "0"),
                this.dollar = parseFloat(e),
                this.dollarlabel.string = this.dollar + "",
                this.tipImg.active = !1
            },
            t.prototype.onLoad = function() {},
            t.prototype.start = function() {
                this.node.zIndex = 51,
                this.node.on(cc.Node.EventType.TOUCH_START, this.touchListener, this)
            },
            t.prototype.exchangeClick = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                this.leftLabel.string = 100 - this.dollar + "",
                this.tipImg.active = !0,
                this.tipImg.runAction(cc.sequence(cc.delayTime(2), cc.callFunc(this.hideToast, this)))
            },
            t.prototype.hideToast = function() {
                this.tipImg.active = !1
            },
            t.prototype.touchListener = function() {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                this.node.active = !1
            },
            __decorate([c(cc.Label)], t.prototype, "dollarlabel", void 0),
            __decorate([c(cc.Node)], t.prototype, "tipImg", void 0),
            __decorate([c(cc.Label)], t.prototype, "leftLabel", void 0),
            t = __decorate([r], t)
        } (cc.Component);
        o.LipinLayout = s,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./DataControl": "DataControl"
    }],
    LoadingScene: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "4697bFX/fROoYopT7G9PAFE", "LoadingScene"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./DataControl"),
        a = cc._decorator,
        i = a.ccclass,
        r = (a.property,
        function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return __extends(t, e),
            t.prototype.start = function() {
                n.DataControl.init(),
                n.DataControl.initAd(),
                this.preloadScene()
            },
            t.prototype.preloadScene = function() {
                cc.director.preloadScene("GameScene", this.loadGameSceneCompelete)
            },
            t.prototype.loadGameSceneCompelete = function() {
                cc.director.loadScene("GameScene")
            },
            t = __decorate([i], t)
        } (cc.Component));
        o.LoadingScene = r,
        cc._RF.pop()
    },
    {
        "./DataControl": "DataControl"
    }],
    Mortar: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "67789lZ7cBFLI7k7Bdj+d3m", "Mortar"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("../GameScene"),
        a = e("../DataControl"),
        i = e("../AudioManager"),
        r = cc._decorator,
        c = r.ccclass,
        s = r.property,
        l = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.wheelLeft = null,
                t.wheelRight = null,
                t.paoshen = null,
                t.paokou = null,
                t.myR = 0,
                t.paoshenOrgY = 0,
                t.paokouOrgY = 0,
                t.type = 0,
                t.level = 0,
                t.speed = 0,
                t.wudi = !1,
                t
            }
            return __extends(t, e),
            t.prototype.onLoad = function() {
                this.myR = this.wheelLeft.getContentSize().width / 2,
                this.paoshenOrgY = this.paoshen.y,
                this.paokouOrgY = this.paokou.y
            },
            t.prototype.start = function() {
                this.wudi = !1,
                this.node.getChildByName("paoshen").getComponent(cc.Animation).on(cc.Animation.EventType.FINISHED, this.shanshuoover, this),
                this.paokou.getComponent(cc.Animation).play()
            },
            t.prototype.setType = function(e) {
                this.type = e
            },
            t.prototype.setInfo = function(e) {
                this.level = e,
                this.speed = 1 / a.DataControl.ItemLevels[this.level].speed * (Math.floor(this.level / 30) + 1),
                console.log("mymortar speed is " + this.speed, ", level is " + this.level)
            },
            t.prototype.moveByDistance = function(e) {
                var t = e / (Math.PI * this.myR / 180);
                this.wheelLeft.setRotation(this.wheelLeft.rotation + t),
                this.wheelRight.setRotation(this.wheelRight.rotation + t)
            },
            t.prototype.beginFire = function() {
                this.paoshen.y = this.paoshenOrgY - 10,
                this.paoshen.runAction(cc.repeatForever(cc.sequence(cc.moveBy(this.speed / 2, cc.v2(0, 10)), cc.moveBy(this.speed / 2, cc.v2(0, -10))))),
                this.shotBullet( - 1),
                this.schedule(this.shotBullet, this.speed, cc.macro.REPEAT_FOREVER, 0),
                this.paokou.active = !0
            },
            t.prototype.stopFire = function() {
                this.paoshen.stopAllActions(),
                this.paoshen.y = this.paoshenOrgY,
                this.unschedule(this.shotBullet),
                this.paokou.stopAllActions(),
                this.paokou.y = this.paokouOrgY,
                this.paokou.active = !1
            },
            t.prototype.setLevel = function(e) {
                this.level = e
            },
            t.prototype.shotBullet = function(e) {
                i.AudioManager.playEffect(i.AudioManager.shot2),
                n.GameScene.getInstance().createBullet(0)
            },
            t.prototype.onCollisionEnter = function(e, t) {
                0 != e.tag || this.wudi || (i.AudioManager.playEffect(i.AudioManager.balltopaotai1), this.stopFire(), this.paoshen.getComponent(cc.Animation).play(), n.GameScene.getInstance().setCantouch(!1), n.GameScene.getInstance().clearBullets(), n.GameScene.getInstance().pauseBall(), n.GameScene.getInstance().shakeBg(), e.node.getChildByName("labelnum").runAction(cc.blink(1.4, 6)))
            },
            t.prototype.beHited = function() {
                this.stopFire()
            },
            t.prototype.setWudi = function() {
                this.wudi = !0,
                this.node.runAction(cc.sequence(cc.blink(3, 10), cc.callFunc(this.wudiOver, this)))
            },
            t.prototype.wudiOver = function() {
                this.wudi = !1
            },
            t.prototype.shanshuoover = function() {
                console.log("playover"),
                n.GameScene.getInstance().resumeBall(),
                n.GameScene.getInstance().endGame()
            },
            __decorate([s(cc.Node)], t.prototype, "wheelLeft", void 0),
            __decorate([s(cc.Node)], t.prototype, "wheelRight", void 0),
            __decorate([s(cc.Node)], t.prototype, "paoshen", void 0),
            __decorate([s(cc.Node)], t.prototype, "paokou", void 0),
            t = __decorate([c], t)
        } (cc.Component);
        o.Mortar = l,
        cc._RF.pop()
    },
    {
        "../AudioManager": "AudioManager",
        "../DataControl": "DataControl",
        "../GameScene": "GameScene"
    }],
    OffLineLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "88a5cbH7EhKF5FdabgumUHU", "OffLineLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./GameScene"),
        a = e("./AudioManager"),
        i = e("./DataControl"),
        r = e("./GameoverLayout"),
        c = e("./BeginLayout"),
        s = cc._decorator,
        l = s.ccclass,
        h = s.property,
        u = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.coinLabel = null,
                t.btnCollect = null,
                t.btnCollect2 = null,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.onEnable = function() {
                this.setLabel(),
                i.DataControl.getAdReady(i.DataControl.sceneid1) ? (this.btnCollect2.interactable = !0, this.btnCollect2.enabled = !0) : (this.btnCollect2.interactable = !1, this.btnCollect2.enabled = !1)
            },
            t.prototype.onDisable = function() {
                cc.director.resume()
            },
            t.prototype.onLoad = function() {
                o.myInstance = this,
                this.node.zIndex = 55
            },
            t.prototype.start = function() {
                this.node.zIndex = 55,
                this.node.on(cc.Node.EventType.TOUCH_START, this.touchListener, this)
            },
            t.prototype.touchListener = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                this.node.active = !1
            },
            t.prototype.setLabel = function() {
                this.coinLabel.string = n.GameScene.getInstance().currentOffline + ""
            },
            t.prototype.collecClick = function() {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                n.GameScene.getInstance().mycoins += n.GameScene.getInstance().currentOffline,
                i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins),
                c.BeginLayout.getInstance().node.active && c.BeginLayout.getInstance().setTopLabel(),
                this.node.active = !1
            },
            t.prototype.collect2Click = function() {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                i.DataControl.H5BANBEN ? (n.GameScene.getInstance().mycoins += 2 * n.GameScene.getInstance().currentOffline, i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins), i.DataControl.showH5Ads(1), c.BeginLayout.getInstance() && c.BeginLayout.getInstance().node.active && c.BeginLayout.getInstance().setTopLabel(), r.GameOverLayout.getInstance() && r.GameOverLayout.getInstance().node.active && (r.GameOverLayout.getInstance().labelTop.string = n.GameScene.getInstance().mycoins + ""), this.node.active = !1) : i.DataControl.showAd(i.DataControl.sceneid1, 1),
                i.DataControl.showToast("Watching video to get double reward!", 60)
            },
            t.prototype.watchVideoBack = function(e) {
                e ? (i.DataControl.H5BANBEN || (n.GameScene.getInstance().mycoins += 2 * n.GameScene.getInstance().currentOffline, i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins), c.BeginLayout.getInstance() && c.BeginLayout.getInstance().node.active && c.BeginLayout.getInstance().setTopLabel(), r.GameOverLayout.getInstance() && r.GameOverLayout.getInstance().node.active && (r.GameOverLayout.getInstance().labelTop.string = n.GameScene.getInstance().mycoins + "")), this.node.active = !1) : (console.log("cancel watch video"), i.DataControl.H5BANBEN && (n.GameScene.getInstance().mycoins -= n.GameScene.getInstance().currentOffline, i.DataControl.storeData("COIN", n.GameScene.getInstance().mycoins), c.BeginLayout.getInstance() && c.BeginLayout.getInstance().node.active && c.BeginLayout.getInstance().setTopLabel(), r.GameOverLayout.getInstance() && r.GameOverLayout.getInstance().node.active && (r.GameOverLayout.getInstance().labelTop.string = n.GameScene.getInstance().mycoins + "")), i.DataControl.showToast("Exit and give up the double reward!", 60))
            },
            t.myInstance = null,
            __decorate([h(cc.Label)], t.prototype, "coinLabel", void 0),
            __decorate([h(cc.Button)], t.prototype, "btnCollect", void 0),
            __decorate([h(cc.Button)], t.prototype, "btnCollect2", void 0),
            t = o = __decorate([l], t)
        } (cc.Component);
        o.OffLineLayout = u,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./BeginLayout": "BeginLayout",
        "./DataControl": "DataControl",
        "./GameScene": "GameScene",
        "./GameoverLayout": "GameoverLayout"
    }],
    QuitLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "89a7fkxT+BBVpHXByxdRbH6", "QuitLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./DataControl"),
        a = cc._decorator,
        i = a.ccclass,
        r = (a.property,
        function(e) {
            function t() {
                return null !== e && e.apply(this, arguments) || this
            }
            return __extends(t, e),
            t.prototype.start = function() {
                this.node.zIndex = 55
            },
            t.prototype.okClick = function(e) {
                n.DataControl.exitGame()
            },
            t.prototype.noClick = function(e) {
                this.node.active = !1
            },
            t = __decorate([i], t)
        } (cc.Component));
        o.QuitLayout = r,
        cc._RF.pop()
    },
    {
        "./DataControl": "DataControl"
    }],
    SavemeLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "0161fomSL1B9a530XV29y3Z", "SavemeLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./GameScene"),
        a = e("./AudioManager"),
        i = e("./DataControl"),
        r = e("./prefab/Mortar"),
        c = cc._decorator,
        s = c.ccclass,
        l = c.property,
        h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.countLabel = null,
                t.countNum = 5,
                t.imgSkip = null,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.start = function() {},
            t.prototype.onEnable = function() {
                this.imgSkip.active = !1,
                this.countNum = 5,
                this.beginCount( - 1),
                this.schedule(this.beginCount, 1, cc.macro.REPEAT_FOREVER, 0)
            },
            t.prototype.onDisable = function() {
                this.imgSkip.active = !1,
                this.countNum = 5,
                this.unschedule(this.beginCount)
            },
            t.prototype.onLoad = function() {
                o.myInstance = this,
                this.node.zIndex = 50,
                this.node.on(cc.Node.EventType.TOUCH_START, this.touchListener, this)
            },
            t.prototype.beginCount = function(e) {
                this.countNum--,
                this.countLabel.string = this.countNum + "",
                2 == this.countNum ? this.imgSkip.active = !0 : this.countNum <= 0 && (this.unschedule(this.beginCount), n.GameScene.getInstance().showGameOver(), this.node.active = !1)
            },
            t.prototype.touchListener = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                this.unschedule(this.beginCount),
                n.GameScene.getInstance().showGameOver(),
                this.node.active = !1
            },
            t.prototype.saveMeClick = function(e) {
                a.AudioManager.playEffect(a.AudioManager.btnclick),
                this.unschedule(this.beginCount),
                i.DataControl.showAd(i.DataControl.sceneid1, 2)
            },
            t.prototype.doSave = function() {
                this.node.active = !1,
                n.GameScene.getInstance().myMortar.getComponent(r.Mortar).setWudi(),
                n.GameScene.getInstance().saveMeToContinue()
            },
            t.prototype.watchVideoBack = function(e) {
                console.log("cancel watch video savemelaytou"),
                e ? (this.unschedule(this.beginCount), this.doSave()) : this.schedule(this.beginCount, 1, cc.macro.REPEAT_FOREVER, 0)
            },
            t.myInstance = null,
            __decorate([l(cc.Label)], t.prototype, "countLabel", void 0),
            __decorate([l(cc.Node)], t.prototype, "imgSkip", void 0),
            t = o = __decorate([s], t)
        } (cc.Component);
        o.SavemeLayout = h,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./DataControl": "DataControl",
        "./GameScene": "GameScene",
        "./prefab/Mortar": "Mortar"
    }],
    SceneLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "09514jStP5OUbCfWX+I6cO6", "SceneLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./prefab/SceneLock"),
        a = e("./DataControl"),
        i = e("./GameScene"),
        r = e("./AudioManager"),
        c = cc._decorator,
        s = c.ccclass,
        l = c.property,
        h = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.layout1 = null,
                t.imgCheck = null,
                t.myLayout = null,
                t.myPrefab = null,
                t.layout1label1 = null,
                t.layout1label2 = null,
                t.layout2 = null,
                t.imgCondition = null,
                t.layout2label1 = null,
                t.layout2label2 = null,
                t.layout2Item = null,
                t.progress = null,
                t.btnOk = null,
                t.itemCon = [],
                t.chosenIndex = 0,
                t.lastChosenIndex = 0,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.onLoad = function() {
                o.myInstance = this,
                this.node.zIndex = 51
            },
            t.prototype.onEnable = function() {
                this.chosenIndex = i.GameScene.getInstance().currentSceneIndex,
                this.lastChosenIndex = this.chosenIndex,
                this.showLayout1()
            },
            t.prototype.start = function() {},
            t.prototype.showLayout1 = function() {
                this.layout2.node.active = !1,
                this.layout1.node.active = !0,
                this.node.on(cc.Node.EventType.TOUCH_START, this.layout1TouchListener, this);
                var e = a.DataControl.getData("SCENERANDOM");
                e && "" != e || (e = "1"),
                this.imgCheck.isChecked = "0" != e,
                this.createLockItems()
            },
            t.prototype.createLockItems = function() {
                this.itemCon.splice(0, this.itemCon.length),
                this.myLayout.node.removeAllChildren();
                for (var e = 0,
                t = 0; t < 9; t++) {
                    var o = parseInt(a.DataControl.getData("SCENELOCKNUM" + t));
                    isNaN(o) && (o = 0);
                    var i = cc.instantiate(this.myPrefab);
                    i.getComponent(n.SceneLock).setIndex(t),
                    0 == t ? (i.getComponent(n.SceneLock).setState(1), e++) : 8 == t ? i.getComponent(n.SceneLock).setState(2) : 1 == t && o >= 2 ? (i.getComponent(n.SceneLock).setState(1), e++) : 2 == t && o >= 7 ? (i.getComponent(n.SceneLock).setState(1), e++) : 3 == t && o >= 1 ? (i.getComponent(n.SceneLock).setState(1), e++) : 4 == t && o >= 10 ? (i.getComponent(n.SceneLock).setState(1), e++) : 5 == t && o >= 5e3 ? (i.getComponent(n.SceneLock).setState(1), e++) : 6 == t && o >= 1e4 ? (i.getComponent(n.SceneLock).setState(1), e++) : 7 == t && o >= 200 ? (i.getComponent(n.SceneLock).setState(1), e++) : i.getComponent(n.SceneLock).setState(0),
                    t == this.chosenIndex && i.getComponent(n.SceneLock).setSpriteSelect(),
                    i.on(cc.Node.EventType.TOUCH_START, this.itemClick, this),
                    this.myLayout.node.addChild(i),
                    this.itemCon.push(i)
                }
                this.layout1label1.string = e + ""
            },
            t.prototype.showLayout2 = function(e) {
                this.layout1.node.active = !1,
                this.layout2.node.active = !0,
                this.layout2Item.getComponent(cc.Sprite).spriteFrame = i.GameScene.getInstance().unluckAtlas.getSpriteFrame("scene" + e + "_1"),
                this.node.off(cc.Node.EventType.TOUCH_START, this.layout1TouchListener, this);
                var t = e;
                1 != e && 2 != e || (t = 1);
                var o = parseInt(a.DataControl.getData("SCENELOCKNUM" + t)),
                n = 0;
                isNaN(o) && (o = 0),
                0 != e && (1 == e ? n = 2 : 2 == e ? n = 7 : 3 == e ? n = 1 : 4 == e ? n = 10 : 5 == e ? n = 5e3: 6 == e ? n = 1e4: 7 == e ? n = 200 : 1 == e && (n = 1e4), o > n && (o = n), this.layout2label1.string = o + "", this.layout2label2.string = n + "", this.progress.progress = o / n, this.imgCondition.getComponent(cc.Sprite).spriteFrame = i.GameScene.getInstance().unluckAtlas.getSpriteFrame("condition" + e))
            },
            t.prototype.itemClick = function(e) {
                r.AudioManager.playEffect(r.AudioManager.btnclick);
                var t = e.target,
                o = t.getComponent(n.SceneLock).getIndex(),
                c = t.getComponent(n.SceneLock).getState();
                0 == c ? this.showLayout2(o) : 2 == c || this.chosenIndex != o && (t.getComponent(n.SceneLock).setSpriteSelect(), this.itemCon[this.chosenIndex].getComponent(n.SceneLock).setSpriteUnSelect(), i.GameScene.getInstance().currentSceneIndex = o, a.DataControl.storeData("CURRENTSCENEINDEX", o), i.GameScene.getInstance().initScene(), this.chosenIndex = o)
            },
            t.prototype.layout1TouchListener = function(e) {
                r.AudioManager.playEffect(r.AudioManager.btnclick),
                this.node.active = !1
            },
            t.prototype.layout2TouchListener = function(e) {
                r.AudioManager.playEffect(r.AudioManager.btnclick),
                this.showLayout1()
            },
            t.prototype.checkBoxClick = function(e) {
                if (this.imgCheck.isChecked) {
                    console.log("checkBoxClick is " + this.imgCheck.isChecked),
                    a.DataControl.storeData("SCENERANDOM", "1");
                    var t = o.getRandomIndex();
                    console.log("checkBoxClick tempIndex is " + t),
                    t != this.chosenIndex && (this.itemCon[this.chosenIndex].getComponent(n.SceneLock).setSpriteUnSelect(), this.itemCon[t].getComponent(n.SceneLock).setSpriteSelect(), this.chosenIndex = t, i.GameScene.getInstance().currentSceneIndex = t, a.DataControl.storeData("CURRENTSCENEINDEX", t), i.GameScene.getInstance().initScene())
                } else console.log("checkBoxClick is " + this.imgCheck.isChecked),
                a.DataControl.storeData("SCENERANDOM", "0")
            },
            t.getIsRandom = function() {
                var e = a.DataControl.getData("SCENERANDOM");
                return e && "" != e || (e = "1"),
                "0" != e
            },
            t.getRandomIndex = function() {
                for (var e = [], t = 0; t < 9; t++) {
                    var o = parseInt(a.DataControl.getData("SCENELOCKNUM" + t));
                    isNaN(o) && (o = 0),
                    0 == t ? e.push(t) : 1 == t && o >= 2 ? e.push(t) : 2 == t && o >= 7 ? e.push(t) : 3 == t && o >= 1 ? e.push(t) : 4 == t && o >= 10 ? e.push(t) : 5 == t && o >= 5e3 ? e.push(t) : 6 == t && o >= 1e4 ? e.push(t) : 7 == t && o >= 200 && e.push(t)
                }
                return e[a.DataControl.getRandomInt(0, e.length - 1)]
            },
            t.myInstance = null,
            __decorate([l(cc.Layout)], t.prototype, "layout1", void 0),
            __decorate([l(cc.Toggle)], t.prototype, "imgCheck", void 0),
            __decorate([l(cc.Layout)], t.prototype, "myLayout", void 0),
            __decorate([l(cc.Prefab)], t.prototype, "myPrefab", void 0),
            __decorate([l(cc.Label)], t.prototype, "layout1label1", void 0),
            __decorate([l(cc.Label)], t.prototype, "layout1label2", void 0),
            __decorate([l(cc.Layout)], t.prototype, "layout2", void 0),
            __decorate([l(cc.Node)], t.prototype, "imgCondition", void 0),
            __decorate([l(cc.Label)], t.prototype, "layout2label1", void 0),
            __decorate([l(cc.Label)], t.prototype, "layout2label2", void 0),
            __decorate([l(cc.Node)], t.prototype, "layout2Item", void 0),
            __decorate([l(cc.ProgressBar)], t.prototype, "progress", void 0),
            __decorate([l(cc.Button)], t.prototype, "btnOk", void 0),
            t = o = __decorate([s], t)
        } (cc.Component);
        o.SceneLayout = h,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./DataControl": "DataControl",
        "./GameScene": "GameScene",
        "./prefab/SceneLock": "SceneLock"
    }],
    SceneLock: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "7760eQUIJlFt6tftDeA33pp", "SceneLock"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("../GameScene"),
        a = cc._decorator,
        i = a.ccclass,
        r = a.property,
        c = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.mysprite = null,
                t.myYulanSprite = null,
                t.index = 0,
                t.state = 0,
                t
            }
            return __extends(t, e),
            t.prototype.start = function() {},
            t.prototype.setIndex = function(e) {
                this.index = e
            },
            t.prototype.getIndex = function() {
                return this.index
            },
            t.prototype.setState = function(e) {
                this.state = e,
                1 == e ? (this.mysprite.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().unluckAtlas.getSpriteFrame("scene" + this.index + "_0"), this.myYulanSprite.active = !1) : 2 == e ? this.mysprite.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().unluckAtlas.getSpriteFrame("commingsoon") : (this.myYulanSprite.active = !0, this.mysprite.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().unluckAtlas.getSpriteFrame("itemlock"), this.myYulanSprite.getComponent(cc.Sprite).spriteFrame = n.GameScene.getInstance().unluckAtlas.getSpriteFrame("scene" + this.index + "_0"))
            },
            t.prototype.setSpriteSelect = function() {
                this.mysprite.getComponent(cc.Animation).play()
            },
            t.prototype.setSpriteUnSelect = function() {
                this.mysprite.getComponent(cc.Animation).stop(),
                this.mysprite.setScale(1)
            },
            t.prototype.getState = function() {
                return this.state
            },
            __decorate([r(cc.Node)], t.prototype, "mysprite", void 0),
            __decorate([r(cc.Node)], t.prototype, "myYulanSprite", void 0),
            t = __decorate([i], t)
        } (cc.Component);
        o.SceneLock = c,
        cc._RF.pop()
    },
    {
        "../GameScene": "GameScene"
    }],
    TestScene: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "7fa6d0n/7BIiJKwH9gOwkDQ", "TestScene"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./DataControl"),
        a = cc._decorator,
        i = a.ccclass,
        r = a.property,
        c = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.ball = null,
                t
            }
            return __extends(t, e),
            t.prototype.onLoad = function() {
                cc.director.getPhysicsManager().enabled = !0
            },
            t.prototype.start = function() {
                console.log("testscene start"),
                n.DataControl.storeData("YQH", 1),
                console.log("YQH is " + n.DataControl.getData("YQH"))
            },
            __decorate([r(cc.Node)], t.prototype, "ball", void 0),
            t = __decorate([i], t)
        } (cc.Component);
        o.TestScene = c,
        cc._RF.pop()
    },
    {
        "./DataControl": "DataControl"
    }],
    UnlockLayout: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "e8755UcR/dDr42jCT9ofwyp", "UnlockLayout"),
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var n = e("./AudioManager"),
        a = e("./GameScene"),
        i = cc._decorator,
        r = i.ccclass,
        c = i.property,
        s = function(e) {
            function t() {
                var t = null !== e && e.apply(this, arguments) || this;
                return t.imgScene = null,
                t
            }
            var o;
            return __extends(t, e),
            o = t,
            t.getInstance = function() {
                return this.myInstance
            },
            t.prototype.onLoad = function() {
                o.myInstance = this,
                this.node.zIndex = 51
            },
            t.prototype.start = function() {},
            t.prototype.setInfo = function(e) {
                this.imgScene.getComponent(cc.Sprite).spriteFrame = a.GameScene.getInstance().unluckAtlas.getSpriteFrame("scene" + e + "_1")
            },
            t.prototype.closeClick = function(e) {
                n.AudioManager.playEffect(n.AudioManager.btnclick),
                this.node.active = !1
            },
            t.myInstance = null,
            __decorate([c(cc.Node)], t.prototype, "imgScene", void 0),
            t = o = __decorate([r], t)
        } (cc.Component);
        o.UnlockLayout = s,
        cc._RF.pop()
    },
    {
        "./AudioManager": "AudioManager",
        "./GameScene": "GameScene"
    }],
    algo: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "0ad86IqRutCtLv0eLKAL0hH", "algo");
        var n = {
            cipher: function(e, t) {
                for (var o = t.length / 4 - 1,
                a = [[], [], [], []], i = 0; i < 16; i++) a[i % 4][Math.floor(i / 4)] = e[i];
                a = n.addRoundKey(a, t, 0, 4);
                for (var r = 1; r < o; r++) a = n.subBytes(a, 4),
                a = n.shiftRows(a, 4),
                a = n.mixColumns(a, 4),
                a = n.addRoundKey(a, t, r, 4);
                a = n.subBytes(a, 4),
                a = n.shiftRows(a, 4),
                a = n.addRoundKey(a, t, o, 4);
                var c = new Array(16);
                for (i = 0; i < 16; i++) c[i] = a[i % 4][Math.floor(i / 4)];
                return c
            },
            keyExpansion: function(e) {
                for (var t = e.length / 4,
                o = t + 6,
                a = new Array(4 * (o + 1)), i = new Array(4), r = 0; r < t; r++) {
                    var c = [e[4 * r], e[4 * r + 1], e[4 * r + 2], e[4 * r + 3]];
                    a[r] = c
                }
                for (r = t; r < 4 * (o + 1); r++) {
                    a[r] = new Array(4);
                    for (var s = 0; s < 4; s++) i[s] = a[r - 1][s];
                    if (r % t == 0) {
                        i = n.subWord(n.rotWord(i));
                        for (s = 0; s < 4; s++) i[s] ^= n.rCon[r / t][s]
                    } else t > 6 && r % t == 4 && (i = n.subWord(i));
                    for (s = 0; s < 4; s++) a[r][s] = a[r - t][s] ^ i[s]
                }
                return a
            },
            subBytes: function(e, t) {
                for (var o = 0; o < 4; o++) for (var a = 0; a < t; a++) e[o][a] = n.sBox[e[o][a]];
                return e
            },
            shiftRows: function(e, t) {
                for (var o = new Array(4), n = 1; n < 4; n++) {
                    for (var a = 0; a < 4; a++) o[a] = e[n][(a + n) % t];
                    for (a = 0; a < 4; a++) e[n][a] = o[a]
                }
                return e
            },
            mixColumns: function(e, t) {
                for (var o = 0; o < 4; o++) {
                    for (var n = new Array(4), a = new Array(4), i = 0; i < 4; i++) n[i] = e[i][o],
                    a[i] = 128 & e[i][o] ? e[i][o] << 1 ^ 283 : e[i][o] << 1;
                    e[0][o] = a[0] ^ n[1] ^ a[1] ^ n[2] ^ n[3],
                    e[1][o] = n[0] ^ a[1] ^ n[2] ^ a[2] ^ n[3],
                    e[2][o] = n[0] ^ n[1] ^ a[2] ^ n[3] ^ a[3],
                    e[3][o] = n[0] ^ a[0] ^ n[1] ^ n[2] ^ a[3]
                }
                return e
            },
            addRoundKey: function(e, t, o, n) {
                for (var a = 0; a < 4; a++) for (var i = 0; i < n; i++) e[a][i] ^= t[4 * o + i][a];
                return e
            },
            subWord: function(e) {
                for (var t = 0; t < 4; t++) e[t] = n.sBox[e[t]];
                return e
            },
            rotWord: function(e) {
                for (var t = e[0], o = 0; o < 3; o++) e[o] = e[o + 1];
                return e[3] = t,
                e
            },
            sBox: [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
            rCon: [[0, 0, 0, 0], [1, 0, 0, 0], [2, 0, 0, 0], [4, 0, 0, 0], [8, 0, 0, 0], [16, 0, 0, 0], [32, 0, 0, 0], [64, 0, 0, 0], [128, 0, 0, 0], [27, 0, 0, 0], [54, 0, 0, 0]]
        };
        void 0 !== t && t.exports && (t.exports = n),
        "function" == typeof define && define.amd && define([],
        function() {
            return n
        }),
        cc._RF.pop()
    },
    {}],
    encryptjs: [function(e, t, o) { (function(n) {
            "use strict";
            cc._RF.push(t, "a805dsrix9K54FsGRgBKx+3", "encryptjs");
            var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ?
            function(e) {
                return typeof e
            }: function(e) {
                return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol": typeof e
            }; (function(e, n) {
                void 0 !== o && void 0 !== t ? t.exports = n() : "function" == typeof define && "object" === a(define.amd) ? define(n) : "function" == typeof define && "object" === a(define.petal) ? define("encryptjs", [], n) : this.encryptjs = n()
            })(0,
            function(o) {
                if ((o = {
                    version: "1.0.0"
                }).init = function() {
                    console.log("--------------------Applying Encryption Algorithm------------------ ")
                },
                void 0 !== t && t.exports) var i = e("./algo");
                o.encrypt = function(e, t, n) {
                    if (128 != n && 192 != n && 256 != n) return "";
                    e = String(e).utf8Encode(),
                    t = String(t).utf8Encode();
                    for (var a = n / 8,
                    r = new Array(a), c = 0; c < a; c++) r[c] = isNaN(t.charCodeAt(c)) ? 0 : t.charCodeAt(c);
                    var s = i.cipher(r, i.keyExpansion(r));
                    s = s.concat(s.slice(0, a - 16));
                    var l = new Array(16),
                    h = (new Date).getTime(),
                    u = h % 1e3,
                    p = Math.floor(h / 1e3),
                    d = Math.floor(65535 * Math.random());
                    for (c = 0; c < 2; c++) l[c] = u >>> 8 * c & 255;
                    for (c = 0; c < 2; c++) l[c + 2] = d >>> 8 * c & 255;
                    for (c = 0; c < 4; c++) l[c + 4] = p >>> 8 * c & 255;
                    var f = "";
                    for (c = 0; c < 8; c++) f += String.fromCharCode(l[c]);
                    for (var y = i.keyExpansion(s), g = Math.ceil(e.length / 16), m = new Array(g), v = 0; v < g; v++) {
                        for (var b = 0; b < 4; b++) l[15 - b] = v >>> 8 * b & 255;
                        for (b = 0; b < 4; b++) l[15 - b - 4] = v / 4294967296 >>> 8 * b;
                        var S = i.cipher(l, y),
                        C = v < g - 1 ? 16 : (e.length - 1) % 16 + 1,
                        L = new Array(C);
                        for (c = 0; c < C; c++) L[c] = S[c] ^ e.charCodeAt(16 * v + c),
                        L[c] = String.fromCharCode(L[c]);
                        m[v] = L.join("")
                    }
                    var A = f + m.join("");
                    return A = o.base64Encode(A)
                },
                o.decrypt = function(e, t, n) {
                    if (128 != n && 192 != n && 256 != n) return "";
                    e = o.base64Decode(String(e)),
                    t = String(t).utf8Encode();
                    for (var a = n / 8,
                    r = new Array(a), c = 0; c < a; c++) r[c] = isNaN(t.charCodeAt(c)) ? 0 : t.charCodeAt(c);
                    var s = i.cipher(r, i.keyExpansion(r));
                    s = s.concat(s.slice(0, a - 16));
                    var l = new Array(8),
                    h = e.slice(0, 8);
                    for (c = 0; c < 8; c++) l[c] = h.charCodeAt(c);
                    for (var u = i.keyExpansion(s), p = Math.ceil((e.length - 8) / 16), d = new Array(p), f = 0; f < p; f++) d[f] = e.slice(8 + 16 * f, 8 + 16 * f + 16);
                    e = d;
                    var y = new Array(e.length);
                    for (f = 0; f < p; f++) {
                        for (var g = 0; g < 4; g++) l[15 - g] = f >>> 8 * g & 255;
                        for (g = 0; g < 4; g++) l[15 - g - 4] = (f + 1) / 4294967296 - 1 >>> 8 * g & 255;
                        var m = i.cipher(l, u),
                        v = new Array(e[f].length);
                        for (c = 0; c < e[f].length; c++) v[c] = m[c] ^ e[f].charCodeAt(c),
                        v[c] = String.fromCharCode(v[c]);
                        y[f] = v.join("")
                    }
                    var b = y.join("");
                    return b = b.utf8Decode()
                };
                var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
                return o.base64Encode = function(e) {
                    var t, n, a, i, c, s, l, h = "",
                    u = 0;
                    for (e = o._utf8_encode(e); u < e.length;) i = (t = e.charCodeAt(u++)) >> 2,
                    c = (3 & t) << 4 | (n = e.charCodeAt(u++)) >> 4,
                    s = (15 & n) << 2 | (a = e.charCodeAt(u++)) >> 6,
                    l = 63 & a,
                    isNaN(n) ? s = l = 64 : isNaN(a) && (l = 64),
                    h = h + r.charAt(i) + r.charAt(c) + r.charAt(s) + r.charAt(l);
                    return h
                },
                o.base64Decode = function(e) {
                    var t, n, a, i, c, s, l = "",
                    h = 0;
                    for (e = e.replace(/[^A-Za-z0-9\+\/\=]/g, ""); h < e.length;) t = r.indexOf(e.charAt(h++)) << 2 | (i = r.indexOf(e.charAt(h++))) >> 4,
                    n = (15 & i) << 4 | (c = r.indexOf(e.charAt(h++))) >> 2,
                    a = (3 & c) << 6 | (s = r.indexOf(e.charAt(h++))),
                    l += String.fromCharCode(t),
                    64 != c && (l += String.fromCharCode(n)),
                    64 != s && (l += String.fromCharCode(a));
                    return l = o._utf8_decode(l)
                },
                o._utf8_encode = function(e) {
                    e = e.replace(/\r\n/g, "\n");
                    for (var t = "",
                    o = 0; o < e.length; o++) {
                        var n = e.charCodeAt(o);
                        n < 128 ? t += String.fromCharCode(n) : n > 127 && n < 2048 ? (t += String.fromCharCode(n >> 6 | 192), t += String.fromCharCode(63 & n | 128)) : (t += String.fromCharCode(n >> 12 | 224), t += String.fromCharCode(n >> 6 & 63 | 128), t += String.fromCharCode(63 & n | 128))
                    }
                    return t
                },
                o._utf8_decode = function(e) {
                    for (var t = "",
                    o = 0,
                    n = 0,
                    a = 0,
                    i = 0; o < e.length;)(n = e.charCodeAt(o)) < 128 ? (t += String.fromCharCode(n), o++) : n > 191 && n < 224 ? (a = e.charCodeAt(o + 1), t += String.fromCharCode((31 & n) << 6 | 63 & a), o += 2) : (a = e.charCodeAt(o + 1), i = e.charCodeAt(o + 2), t += String.fromCharCode((15 & n) << 12 | (63 & a) << 6 | 63 & i), o += 3);
                    return t
                },
                o.getTextEncryptAndSaveToTextFile = function(e, t, o) {
                    throw Error("Command line not supported on this platform")
                },
                o.getTextEncryptAndSaveToJSONFile = function(e, t, o) {
                    throw Error("Command line not supported on this platform")
                },
                o.writeCipherTextToJSON = function(e, t, o, n) {
                    null == n && (n = o, o = {});
                    var i = "object" === (void 0 === o ? "undefined": a(o)) && null !== o && "spaces" in o ? o.spaces: this.spaces;
                    try {
                        JSON.stringify(t, o ? o.replacer: null, i) + "\n"
                    } catch(e) {
                        if (n) return n(e, null)
                    }
                },
                void 0 === String.prototype.utf8Encode && (String.prototype.utf8Encode = function() {
                    return unescape(encodeURIComponent(this))
                }),
                void 0 === String.prototype.utf8Decode && (String.prototype.utf8Decode = function() {
                    try {
                        return decodeURIComponent(escape(this))
                    } catch(e) {
                        return this
                    }
                }),
                void 0 === String.prototype.base64Encode && (String.prototype.base64Encode = function() {
                    if ("undefined" != typeof btoa) return btoa(this);
                    if (void 0 !== n) return new n(this, "utf8").toString("base64");
                    throw new Error("No Base64 Encode")
                }),
                void 0 === String.prototype.base64Decode && (String.prototype.base64Decode = function() {
                    if ("undefined" != typeof atob) return atob(this);
                    if (void 0 !== n) return new n(this, "base64").toString("utf8");
                    throw new Error("No Base64 Decode")
                }),
                o.init(),
                o
            }),
            cc._RF.pop()
        }).call(this, e("buffer").Buffer)
    },
    {
        "./algo": "algo",
        buffer: 2
    }]
},
{},
["AudioManager", "BeginLayout", "DataControl", "GameScene", "GameoverLayout", "GetLipinLayout", "LipinLayout", "LoadingScene", "OffLineLayout", "QuitLayout", "SavemeLayout", "SceneLayout", "TestScene", "UnlockLayout", "algo", "encryptjs", "Ball", "Bullet", "CSV", "Coin", "Mortar", "SceneLock"]);